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

GetInstanceState() public method

Returns the state of a specific instance. Works on one instance at a time.
/// 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 GetInstanceState ( GetInstanceStateRequest request ) : GetInstanceStateResponse
request Amazon.Lightsail.Model.GetInstanceStateRequest Container for the necessary parameters to execute the GetInstanceState service method.
return Amazon.Lightsail.Model.GetInstanceStateResponse
        public GetInstanceStateResponse GetInstanceState(GetInstanceStateRequest request)
        {
            var marshaller = new GetInstanceStateRequestMarshaller();
            var unmarshaller = GetInstanceStateResponseUnmarshaller.Instance;

            return Invoke<GetInstanceStateRequest,GetInstanceStateResponse>(request, marshaller, unmarshaller);
        }
AmazonLightsailClient