CfnFpgaImagePropsMixin

class aws_cdk.cfn_property_mixins.aws_ec2.CfnFpgaImagePropsMixin(props, *, strategy=None)

Bases: Mixin

Creates and manages an Amazon FPGA Image (AFI) from a design checkpoint (DCP).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-fpgaimage.html

CloudformationResource:

AWS::EC2::FpgaImage

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.cfn_property_mixins import aws_ec2 as ec2
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_fpga_image_props_mixin = ec2.CfnFpgaImagePropsMixin(ec2.CfnFpgaImageMixinProps(
    description="description",
    input_storage_location=ec2.CfnFpgaImagePropsMixin.StorageLocationProperty(
        bucket="bucket",
        key="key"
    ),
    logs_storage_location=ec2.CfnFpgaImagePropsMixin.StorageLocationProperty(
        bucket="bucket",
        key="key"
    ),
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::EC2::FpgaImage.

Parameters:
  • props (Union[CfnFpgaImageMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['description', 'inputStorageLocation', 'logsStorageLocation', 'name', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

StorageLocationProperty

class CfnFpgaImagePropsMixin.StorageLocationProperty(*, bucket=None, key=None)

Bases: object

Describes a storage location in Amazon S3.

Parameters:
  • bucket (Optional[str]) – The name of the S3 bucket.

  • key (Optional[str]) – The key.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-fpgaimage-storagelocation.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.cfn_property_mixins import aws_ec2 as ec2

storage_location_property = ec2.CfnFpgaImagePropsMixin.StorageLocationProperty(
    bucket="bucket",
    key="key"
)

Attributes

bucket

The name of the S3 bucket.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-fpgaimage-storagelocation.html#cfn-ec2-fpgaimage-storagelocation-bucket

key

The key.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-fpgaimage-storagelocation.html#cfn-ec2-fpgaimage-storagelocation-key