public static final class CfnComponentProps.Builder
extends java.lang.Object
CfnComponentProps
Constructor and Description |
---|
Builder() |
public CfnComponentProps.Builder name(java.lang.String name)
CfnComponentProps.getName()
name
- The name of the component. This parameter is required.this
public CfnComponentProps.Builder platform(java.lang.String platform)
CfnComponentProps.getPlatform()
platform
- The operating system platform of the component. This parameter is required.this
public CfnComponentProps.Builder version(java.lang.String version)
CfnComponentProps.getVersion()
version
- The component version. This parameter is required.
For example, 1.0.0
.this
public CfnComponentProps.Builder changeDescription(java.lang.String changeDescription)
CfnComponentProps.getChangeDescription()
changeDescription
- The change description of the component.
Describes what change has been made in this version, or what makes this version different from other versions of this component.this
public CfnComponentProps.Builder data(java.lang.String data)
CfnComponentProps.getData()
data
- Component `data` contains inline YAML document content for the component.
Alternatively, you can specify the uri
of a YAML document file stored in Amazon S3. However, you cannot specify both properties.this
public CfnComponentProps.Builder description(java.lang.String description)
CfnComponentProps.getDescription()
description
- Describes the contents of the component.this
public CfnComponentProps.Builder kmsKeyId(java.lang.String kmsKeyId)
CfnComponentProps.getKmsKeyId()
kmsKeyId
- The ID of the KMS key that is used to encrypt this component.this
public CfnComponentProps.Builder supportedOsVersions(java.util.List<java.lang.String> supportedOsVersions)
CfnComponentProps.getSupportedOsVersions()
supportedOsVersions
- The operating system (OS) version supported by the component.
If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.this
public CfnComponentProps.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
CfnComponentProps.getTags()
tags
- The tags that apply to the component.this
public CfnComponentProps.Builder uri(java.lang.String uri)
CfnComponentProps.getUri()
uri
- The `uri` of a YAML component document file.
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.
this
public CfnComponentProps build()
CfnComponentProps
java.lang.NullPointerException
- if any required attribute was not provided