@Stability(value=Stable) public static final class CfnDocument.Builder extends Object implements software.amazon.jsii.Builder<CfnDocument>
CfnDocument.| Modifier and Type | Method and Description |
|---|---|
CfnDocument.Builder |
attachments(IResolvable attachments)
A list of key-value pairs that describe attachments to a version of a document.
|
CfnDocument.Builder |
attachments(List<? extends Object> attachments)
A list of key-value pairs that describe attachments to a version of a document.
|
CfnDocument |
build() |
CfnDocument.Builder |
content(Object content)
The content for the new SSM document in JSON or YAML.
|
static CfnDocument.Builder |
create(Construct scope,
String id) |
CfnDocument.Builder |
documentFormat(String documentFormat)
Specify the document format for the request.
|
CfnDocument.Builder |
documentType(String documentType)
The type of document to create.
|
CfnDocument.Builder |
name(String name)
A name for the SSM document.
|
CfnDocument.Builder |
requires(IResolvable requires)
A list of SSM documents required by a document.
|
CfnDocument.Builder |
requires(List<? extends Object> requires)
A list of SSM documents required by a document.
|
CfnDocument.Builder |
tags(List<? extends CfnTag> tags)
AWS CloudFormation resource tags to apply to the document.
|
CfnDocument.Builder |
targetType(String targetType)
Specify a target type to define the kinds of resources the document can run on.
|
CfnDocument.Builder |
updateMethod(String 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.
|
CfnDocument.Builder |
versionName(String versionName)
An optional field specifying the version of the artifact you are creating with the document.
|
@Stability(value=Stable) public static CfnDocument.Builder create(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.CfnDocument.AttachmentsSourceProperty.Builder.@Stability(value=Stable) public CfnDocument.Builder content(Object content)
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.
content - The content for the new SSM document in JSON or YAML. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder attachments(IResolvable attachments)
attachments - A list of key-value pairs that describe attachments to a version of a document. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder attachments(List<? extends Object> attachments)
attachments - A list of key-value pairs that describe attachments to a version of a document. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder documentFormat(String documentFormat)
JSON is the default format.
documentFormat - Specify the document format for the request. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder documentType(String documentType)
Allowed Values : ApplicationConfigurationSchema | Automation | Automation.ChangeTemplate | Command | DeploymentStrategy | Package | Policy | Session
documentType - The type of document to create. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder name(String name)
You can't use the following strings as document name prefixes. These are reserved by AWS for use as document name prefixes:
awsamazonamzn
name - A name for the SSM document. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder requires(IResolvable requires)
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, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document for validation purposes. For more information, see What is AWS AppConfig ? in the AWS AppConfig User Guide .
requires - A list of SSM documents required by a document. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder requires(List<? extends Object> requires)
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, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document for validation purposes. For more information, see What is AWS AppConfig ? in the AWS AppConfig User Guide .
requires - A list of SSM documents required by a document. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder tags(List<? extends CfnTag> tags)
Use tags to help you identify and categorize resources.
tags - AWS CloudFormation resource tags to apply to the document. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder targetType(String targetType)
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 .
targetType - Specify a target type to define the kinds of resources the document can run on. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder updateMethod(String updateMethod)
Replace is the default method. If you specify NewVersion for the UpdateMethod parameter, and the Name of the document does not match an existing resource, a new document is created. When you specify NewVersion , the default version of the document is changed to the newly created version.
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. This parameter is required.this@Stability(value=Stable) public CfnDocument.Builder versionName(String versionName)
For example, Release12.1 . This value is unique across all versions of a document, and can't be changed.
versionName - An optional field specifying the version of the artifact you are creating with the document. This parameter is required.this@Stability(value=Stable) public CfnDocument build()
build in interface software.amazon.jsii.Builder<CfnDocument>Copyright © 2023. All rights reserved.