CfnStaticIpProps

class aws_cdk.aws_lightsail.CfnStaticIpProps(*, static_ip_name, attached_to=None)

Bases: object

Properties for defining a CfnStaticIp.

Parameters:
  • static_ip_name (str) – The name of the static IP.

  • attached_to (Optional[str]) – The instance that the static IP is attached to.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-staticip.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

cfn_static_ip_props = lightsail.CfnStaticIpProps(
    static_ip_name="staticIpName",

    # the properties below are optional
    attached_to="attachedTo"
)

Attributes

attached_to

The instance that the static IP is attached to.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-staticip.html#cfn-lightsail-staticip-attachedto

static_ip_name

The name of the static IP.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-staticip.html#cfn-lightsail-staticip-staticipname