CfnInfrastructureConfigurationProps

class aws_cdk.aws_imagebuilder.CfnInfrastructureConfigurationProps(*, description=None, instance_metadata_options=None, instance_profile_name, instance_types=None, key_pair=None, logging=None, name, resource_tags=None, security_group_ids=None, sns_topic_arn=None, subnet_id=None, tags=None, terminate_instance_on_failure=None)

Bases: object

Properties for defining a AWS::ImageBuilder::InfrastructureConfiguration.

Parameters
  • description (Optional[str]) – AWS::ImageBuilder::InfrastructureConfiguration.Description.

  • instance_metadata_options (Union[IResolvable, InstanceMetadataOptionsProperty, None]) – AWS::ImageBuilder::InfrastructureConfiguration.InstanceMetadataOptions.

  • instance_profile_name (str) – AWS::ImageBuilder::InfrastructureConfiguration.InstanceProfileName.

  • instance_types (Optional[Sequence[str]]) – AWS::ImageBuilder::InfrastructureConfiguration.InstanceTypes.

  • key_pair (Optional[str]) – AWS::ImageBuilder::InfrastructureConfiguration.KeyPair.

  • logging (Union[IResolvable, LoggingProperty, None]) – AWS::ImageBuilder::InfrastructureConfiguration.Logging.

  • name (str) – AWS::ImageBuilder::InfrastructureConfiguration.Name.

  • resource_tags (Union[IResolvable, Mapping[str, str], None]) – AWS::ImageBuilder::InfrastructureConfiguration.ResourceTags.

  • security_group_ids (Optional[Sequence[str]]) – AWS::ImageBuilder::InfrastructureConfiguration.SecurityGroupIds.

  • sns_topic_arn (Optional[str]) – AWS::ImageBuilder::InfrastructureConfiguration.SnsTopicArn.

  • subnet_id (Optional[str]) – AWS::ImageBuilder::InfrastructureConfiguration.SubnetId.

  • tags (Optional[Mapping[str, str]]) – AWS::ImageBuilder::InfrastructureConfiguration.Tags.

  • terminate_instance_on_failure (Union[bool, IResolvable, None]) – AWS::ImageBuilder::InfrastructureConfiguration.TerminateInstanceOnFailure.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html

Example:

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

cfn_infrastructure_configuration_props = imagebuilder.CfnInfrastructureConfigurationProps(
    instance_profile_name="instanceProfileName",
    name="name",

    # the properties below are optional
    description="description",
    instance_metadata_options=imagebuilder.CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty(
        http_put_response_hop_limit=123,
        http_tokens="httpTokens"
    ),
    instance_types=["instanceTypes"],
    key_pair="keyPair",
    logging=imagebuilder.CfnInfrastructureConfiguration.LoggingProperty(
        s3_logs=imagebuilder.CfnInfrastructureConfiguration.S3LogsProperty(
            s3_bucket_name="s3BucketName",
            s3_key_prefix="s3KeyPrefix"
        )
    ),
    resource_tags={
        "resource_tags_key": "resourceTags"
    },
    security_group_ids=["securityGroupIds"],
    sns_topic_arn="snsTopicArn",
    subnet_id="subnetId",
    tags={
        "tags_key": "tags"
    },
    terminate_instance_on_failure=False
)

Attributes

description

AWS::ImageBuilder::InfrastructureConfiguration.Description.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-description

Return type

Optional[str]

instance_metadata_options

AWS::ImageBuilder::InfrastructureConfiguration.InstanceMetadataOptions.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-instancemetadataoptions

Return type

Union[IResolvable, InstanceMetadataOptionsProperty, None]

instance_profile_name

AWS::ImageBuilder::InfrastructureConfiguration.InstanceProfileName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-instanceprofilename

Return type

str

instance_types

AWS::ImageBuilder::InfrastructureConfiguration.InstanceTypes.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-instancetypes

Return type

Optional[List[str]]

key_pair

AWS::ImageBuilder::InfrastructureConfiguration.KeyPair.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-keypair

Return type

Optional[str]

logging

AWS::ImageBuilder::InfrastructureConfiguration.Logging.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-logging

Return type

Union[IResolvable, LoggingProperty, None]

name

AWS::ImageBuilder::InfrastructureConfiguration.Name.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-name

Return type

str

resource_tags

AWS::ImageBuilder::InfrastructureConfiguration.ResourceTags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-resourcetags

Return type

Union[IResolvable, Mapping[str, str], None]

security_group_ids

AWS::ImageBuilder::InfrastructureConfiguration.SecurityGroupIds.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-securitygroupids

Return type

Optional[List[str]]

sns_topic_arn

AWS::ImageBuilder::InfrastructureConfiguration.SnsTopicArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-snstopicarn

Return type

Optional[str]

subnet_id

AWS::ImageBuilder::InfrastructureConfiguration.SubnetId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-subnetid

Return type

Optional[str]

tags

AWS::ImageBuilder::InfrastructureConfiguration.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-tags

Return type

Optional[Mapping[str, str]]

terminate_instance_on_failure

AWS::ImageBuilder::InfrastructureConfiguration.TerminateInstanceOnFailure.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-terminateinstanceonfailure

Return type

Union[bool, IResolvable, None]