public static interface CreateDocumentRequest.Builder extends SsmRequest.Builder, SdkPojo, CopyableBuilder<CreateDocumentRequest.Builder,CreateDocumentRequest>
Modifier and Type | Method and Description |
---|---|
CreateDocumentRequest.Builder |
attachments(AttachmentsSource... attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
CreateDocumentRequest.Builder |
attachments(Collection<AttachmentsSource> attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
CreateDocumentRequest.Builder |
attachments(Consumer<AttachmentsSource.Builder>... attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
CreateDocumentRequest.Builder |
content(String content)
A valid JSON or YAML string.
|
CreateDocumentRequest.Builder |
documentFormat(DocumentFormat documentFormat)
Specify the document format for the request.
|
CreateDocumentRequest.Builder |
documentFormat(String documentFormat)
Specify the document format for the request.
|
CreateDocumentRequest.Builder |
documentType(DocumentType documentType)
The type of document to create.
|
CreateDocumentRequest.Builder |
documentType(String documentType)
The type of document to create.
|
CreateDocumentRequest.Builder |
name(String name)
A name for the Systems Manager document.
|
CreateDocumentRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateDocumentRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateDocumentRequest.Builder |
targetType(String targetType)
Specify a target type to define the kinds of resources the document can run on.
|
CreateDocumentRequest.Builder |
versionName(String versionName)
An optional field specifying the version of the artifact you are creating with the document.
|
build
overrideConfiguration
copy
applyMutation, build
CreateDocumentRequest.Builder content(String content)
A valid JSON or YAML string.
content
- A valid JSON or YAML string.CreateDocumentRequest.Builder attachments(Collection<AttachmentsSource> attachments)
A list of key and value pairs that describe attachments to a version of a document.
attachments
- A list of key and value pairs that describe attachments to a version of a document.CreateDocumentRequest.Builder attachments(AttachmentsSource... attachments)
A list of key and value pairs that describe attachments to a version of a document.
attachments
- A list of key and value pairs that describe attachments to a version of a document.CreateDocumentRequest.Builder attachments(Consumer<AttachmentsSource.Builder>... attachments)
A list of key and value pairs that describe attachments to a version of a document.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #attachments(List)
.attachments
- a consumer that will call methods on List.Builder
#attachments(List)
CreateDocumentRequest.Builder name(String name)
A name for the Systems Manager document.
Do not use the following to begin the names of documents you create. They are reserved by AWS for use as document prefixes:
aws
amazon
amzn
name
- A name for the Systems Manager document. Do not use the following to begin the names of documents you create. They are reserved by AWS for use as document prefixes:
aws
amazon
amzn
CreateDocumentRequest.Builder versionName(String versionName)
An optional field specifying the version of the artifact you are creating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and cannot be changed.
versionName
- An optional field specifying the version of the artifact you are creating with the document. For
example, "Release 12, Update 6". This value is unique across all versions of a document, and cannot be
changed.CreateDocumentRequest.Builder documentType(String documentType)
The type of document to create. Valid document types include: Command
, Policy
,
Automation
, Session
, and Package
.
documentType
- The type of document to create. Valid document types include: Command
,
Policy
, Automation
, Session
, and Package
.DocumentType
,
DocumentType
CreateDocumentRequest.Builder documentType(DocumentType documentType)
The type of document to create. Valid document types include: Command
, Policy
,
Automation
, Session
, and Package
.
documentType
- The type of document to create. Valid document types include: Command
,
Policy
, Automation
, Session
, and Package
.DocumentType
,
DocumentType
CreateDocumentRequest.Builder documentFormat(String documentFormat)
Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
documentFormat
- Specify the document format for the request. The document format can be either JSON or YAML. JSON is
the default format.DocumentFormat
,
DocumentFormat
CreateDocumentRequest.Builder documentFormat(DocumentFormat documentFormat)
Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
documentFormat
- Specify the document format for the request. The document format can be either JSON or YAML. JSON is
the default format.DocumentFormat
,
DocumentFormat
CreateDocumentRequest.Builder targetType(String 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 Types Reference in the AWS CloudFormation User Guide.
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 Types Reference in the AWS CloudFormation User Guide.CreateDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.