sdk/python/pulumi_aws/ec2/_inputs.py
def affinity(self) -> Optional[pulumi.Input[str]]:
        """
        The affinity setting for an instance on a Dedicated Host.
        """
        return pulumi.get(self, "affinity")

        The affinity setting for an instance on a Dedicated Host.
        
The affinity setting for an instance on a Dedicated Host.
The affinity setting for an instance on a Dedicated Host .
def affinity(self) -> Optional[pulumi.Input[str]]:
        return pulumi.get(self, "affinity")
def affinity ( self ) -> Optional [ pulumi . Input [ str ] ] : return pulumi . get ( self , "affinity" )
The affinity setting for an instance on a Dedicated Host.
The affinity setting for an instance on a Dedicated Host .
"""
        The affinity setting for an instance on a Dedicated Host.
        """
self