Class CfnDocument
The AWS::SSM::Document resource creates a Systems Manager (SSM) document in AWS Systems Manager .
Inherited Members
Namespace: Amazon.CDK.AWS.SSM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDocument : CfnResource, IInspectable, IDocumentRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Syntax (vb)
Public Class CfnDocument Inherits CfnResource Implements IInspectable, IDocumentRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Examples
Application application;
CfnDocument document;
new SourcedConfiguration(this, "MySourcedConfiguration", new SourcedConfigurationProps {
Application = application,
Location = ConfigurationSource.FromCfnDocument(document)
});
Synopsis
Constructors
| CfnDocument(Construct, string, ICfnDocumentProps) | Create a new |
Properties
| Attachments | A list of key-value pairs that describe attachments to a version of a document. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | The |
| CfnPropertyNames | The |
| Content | The content for the new SSM document in JSON or YAML. |
| DocumentFormat | Specify the document format for the request. |
| DocumentRef | A reference to a Document resource. |
| DocumentType | The type of document to create. |
| Name | A name for the SSM document. |
| Requires | A list of SSM documents required by a document. |
| Tags | Tag Manager which manages the tags for this resource. |
| TagsRaw | AWS CloudFormation resource tags to apply to the document. |
| TargetType | Specify a target type to define the kinds of resources the document can run on. |
| 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. |
| VersionName | An optional field specifying the version of the artifact you are creating with the document. |
Methods
| ArnForDocument(IDocumentRef) | The |
| FromDocumentName(Construct, string, string) | Creates a new IDocumentRef from a documentName. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnDocument(object) | Checks whether the given object is a CfnDocument. |
| RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnDocument(Construct, string, ICfnDocumentProps)
Create a new AWS::SSM::Document.
public CfnDocument(Construct scope, string id, ICfnDocumentProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnDocumentProps
Resource properties.
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Properties
Attachments
A list of key-value pairs that describe attachments to a version of a document.
public virtual object? Attachments { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnDocument.IAttachmentsSourceProperty)[]
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
CfnProperties
The AWS::SSM::Document resource creates a Systems Manager (SSM) document in AWS Systems Manager .
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
CfnPropertyNames
The AWS::SSM::Document resource creates a Systems Manager (SSM) document in AWS Systems Manager .
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Content
The content for the new SSM document in JSON or YAML.
public virtual object Content { get; set; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
DocumentFormat
Specify the document format for the request.
public virtual string? DocumentFormat { get; set; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
DocumentRef
A reference to a Document resource.
public virtual IDocumentReference DocumentRef { get; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
DocumentType
The type of document to create.
public virtual string? DocumentType { get; set; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Name
A name for the SSM document.
public virtual string? Name { get; set; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Requires
A list of SSM documents required by a document.
public virtual object? Requires { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnDocument.IDocumentRequiresProperty)[]
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
TagsRaw
AWS CloudFormation resource tags to apply to the document.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
TargetType
Specify a target type to define the kinds of resources the document can run on.
public virtual string? TargetType { get; set; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
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.
public virtual string? UpdateMethod { get; set; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
VersionName
An optional field specifying the version of the artifact you are creating with the document.
public virtual string? VersionName { get; set; }
Property Value
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Methods
ArnForDocument(IDocumentRef)
The AWS::SSM::Document resource creates a Systems Manager (SSM) document in AWS Systems Manager .
public static string ArnForDocument(IDocumentRef resource)
Parameters
- resource IDocumentRef
Returns
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Examples
Application application;
CfnDocument document;
new SourcedConfiguration(this, "MySourcedConfiguration", new SourcedConfigurationProps {
Application = application,
Location = ConfigurationSource.FromCfnDocument(document)
});
FromDocumentName(Construct, string, string)
Creates a new IDocumentRef from a documentName.
public static IDocumentRef FromDocumentName(Construct scope, string id, string documentName)
Parameters
Returns
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
IsCfnDocument(object)
Checks whether the given object is a CfnDocument.
public static bool IsCfnDocument(object x)
Parameters
- x object
Returns
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused
RenderProperties(IDictionary<string, object>)
The AWS::SSM::Document resource creates a Systems Manager (SSM) document in AWS Systems Manager .
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
This document defines the actions that Systems Manager performs on your AWS resources.
This resource does not support CloudFormation drift detection.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
CloudformationResource: AWS::SSM::Document
ExampleMetadata: infused