Class CfnDocumentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ssm.CfnDocumentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDocumentMixinProps>
- Enclosing interface:
CfnDocumentMixinProps
@Stability(Stable)
public static final class CfnDocumentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDocumentMixinProps>
A builder for
CfnDocumentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachments(List<? extends Object> attachments) Sets the value ofCfnDocumentMixinProps.getAttachments()attachments(IResolvable attachments) Sets the value ofCfnDocumentMixinProps.getAttachments()build()Builds the configured instance.Sets the value ofCfnDocumentMixinProps.getContent()documentFormat(String documentFormat) Sets the value ofCfnDocumentMixinProps.getDocumentFormat()documentType(String documentType) Sets the value ofCfnDocumentMixinProps.getDocumentType()Sets the value ofCfnDocumentMixinProps.getName()Sets the value ofCfnDocumentMixinProps.getRequires()requires(IResolvable requires) Sets the value ofCfnDocumentMixinProps.getRequires()Sets the value ofCfnDocumentMixinProps.getTags()targetType(String targetType) Sets the value ofCfnDocumentMixinProps.getTargetType()updateMethod(String updateMethod) Sets the value ofCfnDocumentMixinProps.getUpdateMethod()versionName(String versionName) Sets the value ofCfnDocumentMixinProps.getVersionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachments
Sets the value ofCfnDocumentMixinProps.getAttachments()- Parameters:
attachments- A list of key-value pairs that describe attachments to a version of a document.- Returns:
this
-
attachments
@Stability(Stable) public CfnDocumentMixinProps.Builder attachments(List<? extends Object> attachments) Sets the value ofCfnDocumentMixinProps.getAttachments()- Parameters:
attachments- A list of key-value pairs that describe attachments to a version of a document.- Returns:
this
-
content
Sets the value ofCfnDocumentMixinProps.getContent()- Parameters:
content- The content for the new SSM document in JSON or YAML. For more information about the schemas for SSM document content, see SSM document schema features and examples in the AWS Systems Manager User Guide .This parameter also supports
Stringdata types.- Returns:
this
-
documentFormat
Sets the value ofCfnDocumentMixinProps.getDocumentFormat()- Parameters:
documentFormat- Specify the document format for the request.JSONis the default format.- Returns:
this
-
documentType
Sets the value ofCfnDocumentMixinProps.getDocumentType()- Parameters:
documentType- The type of document to create.- Returns:
this
-
name
Sets the value ofCfnDocumentMixinProps.getName()- Parameters:
name- A name for the SSM document.You can't use the following strings as document name prefixes. These are reserved by AWS for use as document name prefixes:
awsamazonamznAWSEC2AWSConfigRemediationAWSSupport
- Returns:
this
-
requires
Sets the value ofCfnDocumentMixinProps.getRequires()- Parameters:
requires- A list of SSM documents required by a document. This parameter is used exclusively by AWS AppConfig . When a user creates an AWS AppConfig configuration in an SSM document, the user must also specify a required document for validation purposes. In this case, anApplicationConfigurationdocument requires anApplicationConfigurationSchemadocument for validation purposes. For more information, see What is AWS AppConfig ? in the AWS AppConfig User Guide .- Returns:
this
-
requires
Sets the value ofCfnDocumentMixinProps.getRequires()- Parameters:
requires- A list of SSM documents required by a document. This parameter is used exclusively by AWS AppConfig . When a user creates an AWS AppConfig configuration in an SSM document, the user must also specify a required document for validation purposes. In this case, anApplicationConfigurationdocument requires anApplicationConfigurationSchemadocument for validation purposes. For more information, see What is AWS AppConfig ? in the AWS AppConfig User Guide .- Returns:
this
-
tags
Sets the value ofCfnDocumentMixinProps.getTags()- Parameters:
tags- AWS CloudFormation resource tags to apply to the document. Use tags to help you identify and categorize resources.- Returns:
this
-
targetType
Sets the value ofCfnDocumentMixinProps.getTargetType()- Parameters:
targetType- Specify a target type to define the kinds of resources the document can run on. For example, to run a document on EC2 instances, specify the following value:/AWS::EC2::Instance. If you specify a value of '/' the document can run on all types of resources. If you don't specify a value, the document can't run on any resources. For a list of valid resource types, see AWS resource and property types reference in the AWS CloudFormation User Guide .- Returns:
this
-
updateMethod
Sets the value ofCfnDocumentMixinProps.getUpdateMethod()- Parameters:
updateMethod- If the document resource you specify in your template already exists, this parameter determines whether a new version of the existing document is created, or the existing document is replaced.Replaceis the default method. If you specifyNewVersionfor theUpdateMethodparameter, and theNameof the document does not match an existing resource, a new document is created. When you specifyNewVersion, the default version of the document is changed to the newly created version.- Returns:
this
-
versionName
Sets the value ofCfnDocumentMixinProps.getVersionName()- Parameters:
versionName- An optional field specifying the version of the artifact you are creating with the document. For example,Release12.1. This value is unique across all versions of a document, and can't be changed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDocumentMixinProps>- Returns:
- a new instance of
CfnDocumentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-