Interface CfnDocumentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDocumentProps.Jsii$Proxy
CfnDocument.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;
Object content;
CfnDocumentProps cfnDocumentProps = CfnDocumentProps.builder()
.content(content)
// the properties below are optional
.attachments(List.of(AttachmentsSourceProperty.builder()
.key("key")
.name("name")
.values(List.of("values"))
.build()))
.documentFormat("documentFormat")
.documentType("documentType")
.name("name")
.requires(List.of(DocumentRequiresProperty.builder()
.name("name")
.version("version")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.targetType("targetType")
.updateMethod("updateMethod")
.versionName("versionName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDocumentPropsstatic final classAn implementation forCfnDocumentProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDocumentProps.Builderbuilder()default ObjectA list of key-value pairs that describe attachments to a version of a document.The content for the new SSM document in JSON or YAML.default StringSpecify the document format for the request.default StringThe type of document to create.default StringgetName()A name for the SSM document.default ObjectA list of SSM documents required by a document.getTags()AWS CloudFormation resource tags to apply to the document.default StringSpecify a target type to define the kinds of resources the document can run on.default StringIf 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.default StringAn optional field specifying the version of the artifact you are creating with the document.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContent
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.- See Also:
-
getAttachments
A list of key-value pairs that describe attachments to a version of a document.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDocument.AttachmentsSourceProperty>- See Also:
-
getDocumentFormat
Specify the document format for the request.JSONis the default format.Default: - "JSON"
- See Also:
-
getDocumentType
The type of document to create.- See Also:
-
getName
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
- See Also:
-
getRequires
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, an
ApplicationConfigurationdocument requires anApplicationConfigurationSchemadocument for validation purposes. For more information, see What is AWS AppConfig ? in the AWS AppConfig User Guide .Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDocument.DocumentRequiresProperty>- See Also:
-
getTags
AWS CloudFormation resource tags to apply to the document.Use tags to help you identify and categorize resources.
- See Also:
-
getTargetType
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 .- See Also:
-
getUpdateMethod
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.Default: - "Replace"
- See Also:
-
getVersionName
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.- See Also:
-
builder
- Returns:
- a
CfnDocumentProps.BuilderofCfnDocumentProps
-