CfnEnvironmentEC2PropsMixin

class aws_cdk.mixins_preview.aws_cloud9.mixins.CfnEnvironmentEC2PropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::Cloud9::EnvironmentEC2 resource creates an Amazon EC2 development environment in AWS Cloud9 .

For more information, see Creating an Environment in the AWS Cloud9 User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html

CloudformationResource:

AWS::Cloud9::EnvironmentEC2

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_cloud9 import mixins as cloud9_mixins

cfn_environment_eC2_props_mixin = cloud9_mixins.CfnEnvironmentEC2PropsMixin(cloud9_mixins.CfnEnvironmentEC2MixinProps(
    automatic_stop_time_minutes=123,
    connection_type="connectionType",
    description="description",
    image_id="imageId",
    instance_type="instanceType",
    name="name",
    owner_arn="ownerArn",
    repositories=[cloud9_mixins.CfnEnvironmentEC2PropsMixin.RepositoryProperty(
        path_component="pathComponent",
        repository_url="repositoryUrl"
    )],
    subnet_id="subnetId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::Cloud9::EnvironmentEC2.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['automaticStopTimeMinutes', 'connectionType', 'description', 'imageId', 'instanceType', 'name', 'ownerArn', 'repositories', 'subnetId', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) 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.

Stability:

experimental

RepositoryProperty

class CfnEnvironmentEC2PropsMixin.RepositoryProperty(*, path_component=None, repository_url=None)

Bases: object

The Repository property type specifies an AWS CodeCommit source code repository to be cloned into an AWS Cloud9 development environment.

Parameters:
  • path_component (Optional[str]) – The path within the development environment’s default file system location to clone the AWS CodeCommit repository into. For example, /REPOSITORY_NAME would clone the repository into the /home/USER_NAME/environment/REPOSITORY_NAME directory in the environment.

  • repository_url (Optional[str]) – The clone URL of the AWS CodeCommit repository to be cloned. For example, for an AWS CodeCommit repository this might be https://git-codecommit.us-east-2.amazonaws.com/v1/repos/REPOSITORY_NAME .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.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.mixins_preview.aws_cloud9 import mixins as cloud9_mixins

repository_property = cloud9_mixins.CfnEnvironmentEC2PropsMixin.RepositoryProperty(
    path_component="pathComponent",
    repository_url="repositoryUrl"
)

Attributes

path_component

The path within the development environment’s default file system location to clone the AWS CodeCommit repository into.

For example, /REPOSITORY_NAME would clone the repository into the /home/USER_NAME/environment/REPOSITORY_NAME directory in the environment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html#cfn-cloud9-environmentec2-repository-pathcomponent

repository_url

The clone URL of the AWS CodeCommit repository to be cloned.

For example, for an AWS CodeCommit repository this might be https://git-codecommit.us-east-2.amazonaws.com/v1/repos/REPOSITORY_NAME .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html#cfn-cloud9-environmentec2-repository-repositoryurl