Class CfnDocument
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ssm.CfnDocument
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IDocumentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:15.589Z")
@Stability(Stable)
public class CfnDocument
extends CfnResource
implements IInspectable, IDocumentRef, ITaggable
The
AWS::SSM::Document resource creates a Systems Manager (SSM) document in AWS Systems Manager .
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support AWS CloudFormation drift detection.
Example:
Application application;
CfnDocument document;
SourcedConfiguration.Builder.create(this, "MySourcedConfiguration")
.application(application)
.location(ConfigurationSource.fromCfnDocument(document))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceIdentifying information about a document attachment, including the file name and a key-value pair that identifies the location of an attachment to a document.static final classA fluent builder forCfnDocument.static interfaceAn SSM document required by the current document.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.IDocumentRef
IDocumentRef.Jsii$Default, IDocumentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDocument(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDocument(software.amazon.jsii.JsiiObjectRef objRef) CfnDocument(software.constructs.Construct scope, String id, CfnDocumentProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IDocumentReffromDocumentName(software.constructs.Construct scope, String id, String documentName) Creates a new IDocumentRef from a documentName.A 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.Specify the document format for the request.A reference to a Document resource.The type of document to create.getName()A name for the SSM document.A list of SSM documents required by a document.getTags()Tag Manager which manages the tags for this resource.AWS CloudFormation resource tags to apply to the document.Specify a target type to define the kinds of resources the document can run on.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.An optional field specifying the version of the artifact you are creating with the document.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAttachments(List<Object> value) A list of key-value pairs that describe attachments to a version of a document.voidsetAttachments(IResolvable value) A list of key-value pairs that describe attachments to a version of a document.voidsetContent(Object value) The content for the new SSM document in JSON or YAML.voidsetDocumentFormat(String value) Specify the document format for the request.voidsetDocumentType(String value) The type of document to create.voidA name for the SSM document.voidsetRequires(List<Object> value) A list of SSM documents required by a document.voidsetRequires(IResolvable value) A list of SSM documents required by a document.voidsetTagsRaw(List<CfnTag> value) AWS CloudFormation resource tags to apply to the document.voidsetTargetType(String value) Specify a target type to define the kinds of resources the document can run on.voidsetUpdateMethod(String value) 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.voidsetVersionName(String value) An optional field specifying the version of the artifact you are creating with the document.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDocument
protected CfnDocument(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDocument
protected CfnDocument(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDocument
@Stability(Stable) public CfnDocument(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDocumentProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromDocumentName
@Stability(Stable) @NotNull public static IDocumentRef fromDocumentName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String documentName) Creates a new IDocumentRef from a documentName.- Parameters:
scope- This parameter is required.id- This parameter is required.documentName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDocumentRef
A reference to a Document resource.- Specified by:
getDocumentRefin interfaceIDocumentRef
-
getTags
Tag Manager which manages the tags for this resource. -
getContent
The content for the new SSM document in JSON or YAML. -
setContent
The content for the new SSM document in JSON or YAML. -
getAttachments
A list of key-value pairs that describe attachments to a version of a document.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDocument.AttachmentsSourceProperty> -
setAttachments
A list of key-value pairs that describe attachments to a version of a document. -
setAttachments
A list of key-value pairs that describe attachments to a version of a document. -
getDocumentFormat
Specify the document format for the request. -
setDocumentFormat
Specify the document format for the request. -
getDocumentType
The type of document to create. -
setDocumentType
The type of document to create. -
getName
A name for the SSM document. -
setName
A name for the SSM document. -
getRequires
A list of SSM documents required by a document.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDocument.DocumentRequiresProperty> -
setRequires
A list of SSM documents required by a document. -
setRequires
A list of SSM documents required by a document. -
getTagsRaw
AWS CloudFormation resource tags to apply to the document. -
setTagsRaw
AWS CloudFormation resource tags to apply to the document. -
getTargetType
Specify a target type to define the kinds of resources the document can run on. -
setTargetType
Specify a target type to define the kinds of resources the document can run on. -
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. -
setUpdateMethod
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. -
getVersionName
An optional field specifying the version of the artifact you are creating with the document. -
setVersionName
An optional field specifying the version of the artifact you are creating with the document.
-