CfnEIPPropsMixin
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnEIPPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies an Elastic IP (EIP) address and can, optionally, associate it with an Amazon EC2 instance.
You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon EC2 User Guide .
For more information, see Elastic IP Addresses in the Amazon EC2 User Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html
- CloudformationResource:
AWS::EC2::EIP
- Mixin:
true
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins cfn_eIPProps_mixin = ec2_mixins.CfnEIPPropsMixin(ec2_mixins.CfnEIPMixinProps( address="address", domain="domain", instance_id="instanceId", ipam_pool_id="ipamPoolId", network_border_group="networkBorderGroup", public_ipv4_pool="publicIpv4Pool", tags=[CfnTag( key="key", value="value" )], transfer_address="transferAddress" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::EC2::EIP.- Parameters:
props (
Union[CfnEIPMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['address', 'domain', 'instanceId', 'ipamPoolId', 'networkBorderGroup', 'publicIpv4Pool', 'tags', 'transferAddress']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental