sdk/python/pulumi_aws/ec2/instance.py
def instance_state(self) -> Optional[pulumi.Input[str]]:
        """
        The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped`. See [Instance Lifecycle](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) for more information.
        """
        return pulumi.get(self, "instance_state")

        The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped`. See [Instance Lifecycle](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) for more information.
        
The state of the instance.
The state of the instance .
def instance_state(self) -> Optional[pulumi.Input[str]]:
        return pulumi.get(self, "instance_state")
def instance_state ( self ) -> Optional [ pulumi . Input [ str ] ] : return pulumi . get ( self , "instance_state" )
The state of the instance.
The state of the instance .
"""
        The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped`. See [Instance Lifecycle](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) for more information.
        """
self