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

StopInstance() public method

Stops a specific Amazon Lightsail instance that is currently running.
/// 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 StopInstance ( StopInstanceRequest request ) : StopInstanceResponse
request Amazon.Lightsail.Model.StopInstanceRequest Container for the necessary parameters to execute the StopInstance service method.
return Amazon.Lightsail.Model.StopInstanceResponse
        public StopInstanceResponse StopInstance(StopInstanceRequest request)
        {
            var marshaller = new StopInstanceRequestMarshaller();
            var unmarshaller = StopInstanceResponseUnmarshaller.Instance;

            return Invoke<StopInstanceRequest,StopInstanceResponse>(request, marshaller, unmarshaller);
        }
AmazonLightsailClient