CfnEnvironmentEC2PropsMixin
- class aws_cdk.mixins_preview.aws_cloud9.mixins.CfnEnvironmentEC2PropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::Cloud9::EnvironmentEC2resource creates an Amazon EC2 development environment in AWS Cloud9 .For more information, see Creating an Environment in the AWS Cloud9 User Guide .
- See:
- 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:
props (
Union[CfnEnvironmentEC2MixinProps,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 = ['automaticStopTimeMinutes', 'connectionType', 'description', 'imageId', 'instanceType', 'name', 'ownerArn', 'repositories', 'subnetId', 'tags']
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
RepositoryProperty
- class CfnEnvironmentEC2PropsMixin.RepositoryProperty(*, path_component=None, repository_url=None)
Bases:
objectThe
Repositoryproperty 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_NAMEwould clone the repository into the/home/USER_NAME/environment/REPOSITORY_NAMEdirectory 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 behttps://git-codecommit.us-east-2.amazonaws.com/v1/repos/REPOSITORY_NAME.
- See:
- 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_NAMEwould clone the repository into the/home/USER_NAME/environment/REPOSITORY_NAMEdirectory in the environment.
- 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.