Amazon.Lightsail.AmazonLightsailClient.CloseInstancePublicPorts C# (CSharp) Method

CloseInstancePublicPorts() public method

Closes the public ports on a specific Amazon Lightsail instance.
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid /// credentials to access a resource. /// /// Lightsail throws this exception when an account is still in the setup in progress /// state. /// /// Lightsail throws this exception when user input does not conform to the validation /// rules of an input field. /// /// Lightsail throws this exception when it cannot find a resource. /// /// Lightsail throws this exception when an operation fails to execute. /// /// A general service exception. /// /// Lightsail throws this exception when the user has not been authenticated. ///
public CloseInstancePublicPorts ( CloseInstancePublicPortsRequest request ) : CloseInstancePublicPortsResponse
request Amazon.Lightsail.Model.CloseInstancePublicPortsRequest Container for the necessary parameters to execute the CloseInstancePublicPorts service method.
return Amazon.Lightsail.Model.CloseInstancePublicPortsResponse
        public CloseInstancePublicPortsResponse CloseInstancePublicPorts(CloseInstancePublicPortsRequest request)
        {
            var marshaller = new CloseInstancePublicPortsRequestMarshaller();
            var unmarshaller = CloseInstancePublicPortsResponseUnmarshaller.Instance;

            return Invoke<CloseInstancePublicPortsRequest,CloseInstancePublicPortsResponse>(request, marshaller, unmarshaller);
        }
AmazonLightsailClient