Class CfnImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.imagebuilder.CfnImage
- All Implemented Interfaces:
IInspectable,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:27.523Z")
@Stability(Stable)
public class CfnImage
extends CfnResource
implements IInspectable, ITaggable
An image build version.
An image is a customized, secure, and up-to-date “golden” server image that is pre-installed and pre-configured with software and settings to meet specific IT standards.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
CfnImage cfnImage = CfnImage.Builder.create(this, "MyCfnImage")
.infrastructureConfigurationArn("infrastructureConfigurationArn")
// the properties below are optional
.containerRecipeArn("containerRecipeArn")
.distributionConfigurationArn("distributionConfigurationArn")
.enhancedImageMetadataEnabled(false)
.executionRole("executionRole")
.imageRecipeArn("imageRecipeArn")
.imageScanningConfiguration(ImageScanningConfigurationProperty.builder()
.ecrConfiguration(EcrConfigurationProperty.builder()
.containerTags(List.of("containerTags"))
.repositoryName("repositoryName")
.build())
.imageScanningEnabled(false)
.build())
.imageTestsConfiguration(ImageTestsConfigurationProperty.builder()
.imageTestsEnabled(false)
.timeoutMinutes(123)
.build())
.tags(Map.of(
"tagsKey", "tags"))
.workflows(List.of(WorkflowConfigurationProperty.builder()
.onFailure("onFailure")
.parallelGroup("parallelGroup")
.parameters(List.of(WorkflowParameterProperty.builder()
.name("name")
.value(List.of("value"))
.build()))
.workflowArn("workflowArn")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnImage.static interfaceSettings that Image Builder uses to configure the ECR repository and the output container images that Amazon Inspector scans.static interfaceContains settings for Image Builder image resource and container image scans.static interfaceWhen you create an image or container recipe with Image Builder , you can add the build or test components that are used to create the final image.static interfaceContains control settings and configurable inputs for a workflow resource.static interfaceContains a key/value pair that sets the named workflow parameter.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnImage(software.amazon.jsii.JsiiObjectRef objRef) CfnImage(software.constructs.Construct scope, String id, CfnImageProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) of the image.Returns the AMI ID of the Amazon EC2 AMI in the Region in which you are using Image Builder.Returns a list of URIs for container images created in the context Region.Returns the name of the image.The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.The Amazon Resource Name (ARN) of the distribution configuration.Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.The Amazon Resource Name (ARN) of the image recipe.Contains settings for vulnerability scans.The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.getTags()Tag Manager which manages the tags for this resource.The tags of the image.Contains the build and test workflows that are associated with the image.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetContainerRecipeArn(String value) The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.voidThe Amazon Resource Name (ARN) of the distribution configuration.voidIndicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.voidIndicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.voidsetExecutionRole(String value) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.voidsetImageRecipeArn(String value) The Amazon Resource Name (ARN) of the image recipe.voidContains settings for vulnerability scans.voidContains settings for vulnerability scans.voidThe configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.voidThe configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.voidThe Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.voidsetTagsRaw(Map<String, String> value) The tags of the image.voidsetWorkflows(List<Object> value) Contains the build and test workflows that are associated with the image.voidsetWorkflows(IResolvable value) Contains the build and test workflows that are associated with the image.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnImage
protected CfnImage(software.amazon.jsii.JsiiObjectRef objRef) -
CfnImage
protected CfnImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnImage
@Stability(Stable) public CfnImage(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnImageProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) of the image.For example,
arn:aws:imagebuilder:us-west-2:123456789012:image/mybasicrecipe/2019.12.03/1. -
getAttrImageId
Returns the AMI ID of the Amazon EC2 AMI in the Region in which you are using Image Builder.Values are returned only for AMIs, and not for container images.
-
getAttrImageUri
Returns a list of URIs for container images created in the context Region.Values are returned only for container images, and not for AMIs.
-
getAttrName
Returns the name of the image. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. -
setInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. -
getContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. -
setContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. -
getDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration. -
setDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration. -
getEnhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. -
setEnhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. -
setEnhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. -
getExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. -
setExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. -
getImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe. -
setImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe. -
getImageScanningConfiguration
Contains settings for vulnerability scans. -
setImageScanningConfiguration
Contains settings for vulnerability scans. -
setImageScanningConfiguration
@Stability(Stable) public void setImageScanningConfiguration(@Nullable CfnImage.ImageScanningConfigurationProperty value) Contains settings for vulnerability scans. -
getImageTestsConfiguration
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting. -
setImageTestsConfiguration
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting. -
setImageTestsConfiguration
@Stability(Stable) public void setImageTestsConfiguration(@Nullable CfnImage.ImageTestsConfigurationProperty value) The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting. -
getTagsRaw
The tags of the image. -
setTagsRaw
The tags of the image. -
getWorkflows
Contains the build and test workflows that are associated with the image. -
setWorkflows
Contains the build and test workflows that are associated with the image. -
setWorkflows
Contains the build and test workflows that are associated with the image.
-