CfnAllImageBuildVersionsο
- class aws_cdk.aws_imagebuilder.CfnAllImageBuildVersions(scope, id)ο
Bases:
CfnResourceResource Type definition for AWS::ImageBuilder::AllImageBuildVersions.
Returns the list of image build versions for a specified image version ARN.
- See:
- CloudformationResource:
AWS::ImageBuilder::AllImageBuildVersions
- 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 import aws_imagebuilder as imagebuilder cfn_all_image_build_versions = imagebuilder.CfnAllImageBuildVersions(self, "MyCfnAllImageBuildVersions")
Create a new
AWS::ImageBuilder::AllImageBuildVersions.- Parameters:
scope (
Construct) β Scope in which this resource is defined.id (
str) β Construct identifier for this resource (unique in its scope).
Methods
- add_deletion_override(path)ο
Syntactic sugar for
addOverride(path, undefined).- Parameters:
path (
str) β The path of the value to delete.- Return type:
None
- add_dependency(target)ο
(deprecated) Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
This method has been renamed to
addResourceDependencyto more clearly set it apart fromconstruct.node.addDependency. See the documentation of that function for more details.- Parameters:
target (
CfnResource)- Deprecated:
Use
addResourceDependencyinstead.- Stability:
deprecated
- Return type:
None
- add_depends_on(target)ο
(deprecated) Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
This method has been renamed to
addResourceDependency, which makes it more clear that this method operates at a different level from the construct-levelconstruct.node.addDependency()mechanism.- Parameters:
target (
CfnResource)- Deprecated:
Use
addResourceDependencyinstead.- Stability:
deprecated
- Return type:
None
- add_metadata(key, value)ο
Add a value to the CloudFormation Resource Metadata.
- Parameters:
key (
str)value (
Any)
- See:
- Return type:
None
Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.
- add_override(path, value)ο
Adds an override to the synthesized CloudFormation resource.
To add a property override, either use
addPropertyOverrideor prefixpathwith βProperties.β (i.e.Properties.TopicName).If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal
.in the property name, prefix with a\. In most programming languages you will need to write this as"\\."because the\itself will need to be escaped.For example:
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"]) cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")
would add the overrides Example:
"Properties": { "GlobalSecondaryIndexes": [ { "Projection": { "NonKeyAttributes": [ "myattribute" ] ... } ... }, { "ProjectionType": "INCLUDE" ... }, ] ... }
The
valueargument toaddOverridewill not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.- Parameters:
path (
str) βThe path of the property, you can use dot notation to override values in complex types. Any intermediate keys will be created as needed.
value (
Any) βThe value. Could be primitive or complex.
- Return type:
None
- add_property_deletion_override(property_path)ο
Adds an override that deletes the value of a property from the resource definition.
- Parameters:
property_path (
str) β The path to the property.- Return type:
None
- add_property_override(property_path, value)ο
Adds an override to a resource property.
Syntactic sugar for
addOverride("Properties.<...>", value).- Parameters:
property_path (
str) β The path of the property.value (
Any) β The value.
- Return type:
None
- add_resource_dependency(target, reason=None)ο
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use
construct.node.addDependencyinstead.- Parameters:
target (
CfnResource)reason (
Optional[str])
- Return type:
None
- apply_cross_stack_reference_strength(strength)ο
Sets the cross-stack reference strength for this resource.
When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stackβs context.
- Parameters:
strength (
ReferenceStrength) βThe reference strength to use for this resource.
- Return type:
None
- apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)ο
Sets the deletion policy of the resource based on the removal policy specified.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because youβve removed it from the CDK application or because youβve made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:- Parameters:
policy (
Optional[RemovalPolicy])apply_to_update_replace_policy (
Optional[bool]) β Apply the same deletion policy to the resourceβs βUpdateReplacePolicyβ. Default: truedefault (
Optional[RemovalPolicy]) β The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resource, please consult that specific resourceβs documentation.
- See:
- Return type:
None
- cfn_property_name(cdk_property_name)ο
- Parameters:
cdk_property_name (
str)- Return type:
Optional[str]
- get_att(attribute_name, type_hint=None)ο
Returns a token for an runtime attribute of this resource.
Ideally, use generated attribute accessors (e.g.
resource.arn), but this can be used for future compatibility in case there is no generated attribute.- Parameters:
attribute_name (
str) β The name of the attribute.type_hint (
Optional[ResolutionTypeHint])
- Return type:
- get_metadata(key)ο
Retrieve a value value from the CloudFormation Resource Metadata.
- Parameters:
key (
str)- See:
- Return type:
Any
Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.
- inspect(inspector)ο
Examines the CloudFormation resource and discloses attributes.
- Parameters:
inspector (
TreeInspector) β tree inspector to collect and process attributes.- Return type:
None
- obtain_dependencies()ο
Retrieves an array of resources this resource depends on.
This assembles dependencies on resources across stacks (including nested stacks) automatically.
- Return type:
List[Union[CfnResource,Stack]]
- override_logical_id(new_logical_id)ο
Overrides the auto-generated logical ID with a specific ID.
- Parameters:
new_logical_id (
str) β The new logical ID to use for this stack element.- Return type:
None
- remove_dependency(target)ο
(deprecated) Indicates that this resource no longer depends on another resource.
This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
- Parameters:
target (
CfnResource)- Deprecated:
Use
removeResourceDependencyinstead- Stability:
deprecated
- Return type:
None
- remove_resource_dependency(target)ο
Indicates that this resource no longer depends on another resource.
This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
- Parameters:
target (
CfnResource)- Return type:
None
- replace_dependency(target, new_target)ο
Replaces one dependency with another.
- Parameters:
target (
CfnResource) β The dependency to replace.new_target (
CfnResource) β The new dependency to add.
- Return type:
None
- to_string()ο
Returns a string representation of this construct.
- Return type:
str- Returns:
a string representation of this resource
- with_(*mixins)ο
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple
with()calls if subsequent mixins should apply to added constructs.- Parameters:
mixins (
IMixin)- Return type:
Attributes
- CFN_RESOURCE_TYPE_NAME = 'AWS::ImageBuilder::AllImageBuildVersions'ο
- all_image_build_versions_refο
A reference to a AllImageBuildVersions resource.
- attr_arnο
The Amazon Resource Name (ARN) of the image build version.
- CloudformationAttribute:
Arn
- attr_build_numberο
The build number of the image build version.
- CloudformationAttribute:
BuildNumber
- attr_build_typeο
Indicates the type of build that created this image.
- CloudformationAttribute:
BuildType
- attr_date_createdο
The date on which Image Builder created this image.
- CloudformationAttribute:
DateCreated
- attr_enhanced_image_metadata_enabledο
Indicates whether enhanced image metadata collection is enabled.
- CloudformationAttribute:
EnhancedImageMetadataEnabled
- attr_execution_roleο
The execution role for the image.
- CloudformationAttribute:
ExecutionRole
- attr_image_tests_configurationο
The image tests configuration.
- CloudformationAttribute:
ImageTestsConfiguration
- attr_image_version_arnο
The image version ARN whose build versions you want to list.
- CloudformationAttribute:
ImageVersionArn
- attr_nameο
The name of the image.
- CloudformationAttribute:
Name
- attr_os_versionο
The operating system version of the instances that launch from this image.
- CloudformationAttribute:
OsVersion
- attr_platformο
The operating system platform of the image.
- CloudformationAttribute:
Platform
- attr_stateο
Image status and the reason for that status.
- CloudformationAttribute:
State
- attr_tagsο
The tags associated with the image.
- CloudformationAttribute:
Tags
- attr_typeο
Specifies whether this image produces an AMI or a container image.
- CloudformationAttribute:
Type
- attr_versionο
The semantic version of the image (major.minor.patch).
- CloudformationAttribute:
Version
- cfn_optionsο
Options for this resource, such as condition, update policy etc.
- cfn_resource_typeο
AWS resource type.
- creation_stackο
return:
the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.
- envο
- logical_idο
The logical ID for this CloudFormation stack element.
The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use
overrideLogicalId(newLogicalId).- Returns:
the logical ID as a stringified token. This value will only get resolved during synthesis.
- nodeο
The tree node.
- refο
Return a string that will be resolved to a CloudFormation
{ Ref }for this element.If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through
Lazy.any({ produce: resource.ref }).
- stackο
The stack in which this element is defined.
CfnElements must be defined within a stack scope (directly or indirectly).
Static Methods
- classmethod arn_for_all_image_build_versions(resource)ο
- Parameters:
resource (
IAllImageBuildVersionsRef)- Return type:
str
- classmethod is_cfn_all_image_build_versions(x)ο
Checks whether the given object is a CfnAllImageBuildVersions.
- Parameters:
x (
Any)- Return type:
bool
- classmethod is_cfn_element(x)ο
Returns
trueif a construct is a stack element (i.e. part of the synthesized cloudformation template).Uses duck-typing instead of
instanceofto allow stack elements from different versions of this library to be included in the same stack.- Parameters:
x (
Any)- Return type:
bool- Returns:
The construct as a stack element or undefined if it is not a stack element.
- classmethod is_cfn_resource(x)ο
Check whether the given object is a CfnResource.
- Parameters:
x (
Any)- Return type:
bool
- classmethod is_construct(x)ο
Checks if
xis a construct.Use this method instead of
instanceofto properly detectConstructinstances, even when the construct library is symlinked.Explanation: in JavaScript, multiple copies of the
constructslibrary on disk are seen as independent, completely different libraries. As a consequence, the classConstructin each copy of theconstructslibrary is seen as a different class, and an instance of one class will not test asinstanceofthe other class.npm installwill not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of theconstructslibrary can be accidentally installed, andinstanceofwill behave unpredictably. It is safest to avoid usinginstanceof, and using this type-testing method instead.- Parameters:
x (
Any) β Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsConstruct.
ImageTestsConfigurationPropertyο
- class CfnAllImageBuildVersions.ImageTestsConfigurationProperty(*, image_tests_enabled=None, timeout_minutes=None)ο
Bases:
objectThe image tests configuration.
- Parameters:
image_tests_enabled (
Union[bool,IResolvable,None]) β Determines if tests should run after building the image.timeout_minutes (
Union[int,float,None]) β The maximum time in minutes that tests are permitted to run.
- 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 import aws_imagebuilder as imagebuilder image_tests_configuration_property = imagebuilder.CfnAllImageBuildVersions.ImageTestsConfigurationProperty( image_tests_enabled=False, timeout_minutes=123 )
Attributes
- image_tests_enabledο
Determines if tests should run after building the image.
- timeout_minutesο
The maximum time in minutes that tests are permitted to run.
StatePropertyο
- class CfnAllImageBuildVersions.StateProperty(*, status=None)ο
Bases:
objectImage status and the reason for that status.
- Parameters:
status (
Optional[str]) β The status of the image.- 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 import aws_imagebuilder as imagebuilder state_property = imagebuilder.CfnAllImageBuildVersions.StateProperty( status="status" )
Attributes