@Stability(value=Stable) public static final class CfnComponent.Builder extends Object implements software.amazon.jsii.Builder<CfnComponent>
CfnComponent.| Modifier and Type | Method and Description |
|---|---|
CfnComponent |
build() |
CfnComponent.Builder |
changeDescription(String changeDescription)
A change description of the component.
|
static CfnComponent.Builder |
create(software.constructs.Construct scope,
String id) |
CfnComponent.Builder |
data(String data)
The data of the component.
|
CfnComponent.Builder |
description(String description)
The description of the component.
|
CfnComponent.Builder |
kmsKeyId(String kmsKeyId)
The KMS key identifier used to encrypt the component.
|
CfnComponent.Builder |
name(String name)
The name of the component.
|
CfnComponent.Builder |
platform(String platform)
The platform of the component.
|
CfnComponent.Builder |
supportedOsVersions(List<String> supportedOsVersions)
The operating system (OS) version supported by the component.
|
CfnComponent.Builder |
tags(Map<String,String> tags)
The tags associated with the component.
|
CfnComponent.Builder |
uri(String uri)
The `uri` of a YAML component document file.
|
CfnComponent.Builder |
version(String version)
The component version.
|
@Stability(value=Stable) public static CfnComponent.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnComponent.Builder.@Stability(value=Stable) public CfnComponent.Builder name(String name)
name - The name of the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder platform(String platform)
For example, Windows .
platform - The platform of the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder version(String version)
For example, 1.0.0 .
version - The component version. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder changeDescription(String changeDescription)
For example initial version .
changeDescription - A change description of the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder data(String data)
For example, name: HelloWorldTestingDocument\ndescription: This is hello world testing document.\nschemaVersion: 1.0\n\nphases:\n - name: test\n steps:\n - name: HelloWorldStep\n action: ExecuteBash\n inputs:\n commands:\n - echo \"Hello World! Test.\"\n . See Examples below for the schema for creating a component using Data.
data - The data of the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder description(String description)
description - The description of the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder kmsKeyId(String kmsKeyId)
kmsKeyId - The KMS key identifier used to encrypt the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder supportedOsVersions(List<String> supportedOsVersions)
If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
supportedOsVersions - The operating system (OS) version supported by the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder tags(Map<String,String> tags)
tags - The tags associated with the component. This parameter is required.this@Stability(value=Stable) public CfnComponent.Builder uri(String uri)
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.
uri - The `uri` of a YAML component document file. This parameter is required.this@Stability(value=Stable) public CfnComponent build()
build in interface software.amazon.jsii.Builder<CfnComponent>Copyright © 2022. All rights reserved.