@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.807Z") @Stability(value=Stable) public class CfnComponent extends CfnResource implements IInspectable
Creates a new component that can be used to build, validate, test, and assess your image. The component is based on a YAML document that you specify using exactly one of the following methods:
data property in the request body.uri property in the request body.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.*;
CfnComponent cfnComponent = CfnComponent.Builder.create(this, "MyCfnComponent")
.name("name")
.platform("platform")
.version("version")
// the properties below are optional
.changeDescription("changeDescription")
.data("data")
.description("description")
.kmsKeyId("kmsKeyId")
.supportedOsVersions(List.of("supportedOsVersions"))
.tags(Map.of(
"tagsKey", "tags"))
.uri("uri")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnComponent.Builder
A fluent builder for
CfnComponent. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnComponent(software.constructs.Construct scope,
String id,
CfnComponentProps props)
Create a new `AWS::ImageBuilder::Component`.
|
protected |
CfnComponent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnComponent(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
Returns the Amazon Resource Name (ARN) of the component.
|
IResolvable |
getAttrEncrypted()
Returns the encryption status of the component.
|
String |
getAttrName()
Returns the name of the component.
|
String |
getAttrType()
Image Builder determines the component type based on the phases that are defined in the component document.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getChangeDescription()
The change description of the component.
|
String |
getData()
Component `data` contains inline YAML document content for the component.
|
String |
getDescription()
The description of the component.
|
String |
getKmsKeyId()
The ID of the KMS key that should be used to encrypt this component.
|
String |
getName()
The name of the component.
|
String |
getPlatform()
The platform of the component.
|
List<String> |
getSupportedOsVersions()
The operating system (OS) version supported by the component.
|
TagManager |
getTags()
The tags of the component.
|
String |
getUri()
The `uri` of a YAML component document file.
|
String |
getVersion()
The component version.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setChangeDescription(String value)
The change description of the component.
|
void |
setData(String value)
Component `data` contains inline YAML document content for the component.
|
void |
setDescription(String value)
The description of the component.
|
void |
setKmsKeyId(String value)
The ID of the KMS key that should be used to encrypt this component.
|
void |
setName(String value)
The name of the component.
|
void |
setPlatform(String value)
The platform of the component.
|
void |
setSupportedOsVersions(List<String> value)
The operating system (OS) version supported by the component.
|
void |
setUri(String value)
The `uri` of a YAML component document file.
|
void |
setVersion(String value)
The component version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnComponent(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnComponent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnComponent(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnComponentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
The following pattern is applied: ^arn:aws[^:]*:imagebuilder:[^:]+:(?:\d{12}|aws):(?:image-recipe|infrastructure-configuration|distribution-configuration|component|image|image-pipeline)/[a-z0-9-_]+(?:/(?:(?:x|\d+)\.(?:x|\d+)\.(?:x|\d+))(?:/\d+)?)?$ .
@Stability(value=Stable) @NotNull public IResolvable getAttrEncrypted()
For example true or false .
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull public String getAttrType()
If there is only one phase, and its name is "test", then the type is TEST . For all other components, the type is BUILD .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getPlatform()
@Stability(value=Stable)
public void setPlatform(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getVersion()
For example, 1.0.0 .
@Stability(value=Stable)
public void setVersion(@NotNull
String value)
For example, 1.0.0 .
@Stability(value=Stable) @Nullable public String getChangeDescription()
Describes what change has been made in this version, or what makes this version different from other versions of this component.
@Stability(value=Stable)
public void setChangeDescription(@Nullable
String value)
Describes what change has been made in this version, or what makes this version different from other versions of this component.
@Stability(value=Stable) @Nullable public String getData()
Alternatively, you can specify the uri of a YAML document file stored in Amazon S3. However, you cannot specify both properties.
@Stability(value=Stable)
public void setData(@Nullable
String value)
Alternatively, you can specify the uri of a YAML document file stored in Amazon S3. However, you cannot specify both properties.
@Stability(value=Stable) @Nullable public String getDescription()
Describes the contents of the component.
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Describes the contents of the component.
@Stability(value=Stable) @Nullable public String getKmsKeyId()
@Stability(value=Stable)
public void setKmsKeyId(@Nullable
String value)
@Stability(value=Stable) @Nullable public List<String> getSupportedOsVersions()
If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
@Stability(value=Stable)
public void setSupportedOsVersions(@Nullable
List<String> value)
If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
@Stability(value=Stable) @Nullable public String getUri()
This must be an S3 URL ( s3://bucket/key ), and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data property. You cannot specify both properties.
@Stability(value=Stable)
public void setUri(@Nullable
String value)
This must be an S3 URL ( s3://bucket/key ), and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data property. You cannot specify both properties.
Copyright © 2022. All rights reserved.