Table of Contents

Class CfnDocument.AttachmentsSourceProperty

Namespace
Amazon.CDK.AWS.SSM
Assembly
Amazon.CDK.AWS.SSM.dll

Identifying information about a document attachment, including the file name and a key-value pair that identifies the location of an attachment to a document.

public class CfnDocument.AttachmentsSourceProperty : CfnDocument.IAttachmentsSourceProperty
Inheritance
CfnDocument.AttachmentsSourceProperty
Implements
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SSM;

             var attachmentsSourceProperty = new AttachmentsSourceProperty {
                 Key = "key",
                 Name = "name",
                 Values = new [] { "values" }
             };

Remarks

Constructors

AttachmentsSourceProperty()

public AttachmentsSourceProperty()

Properties

Key

The key of a key-value pair that identifies the location of an attachment to a document.

public string? Key { get; set; }

Property Value

string

Remarks

Name

The name of the document attachment file.

public string? Name { get; set; }

Property Value

string

Remarks

Values

The value of a key-value pair that identifies the location of an attachment to a document.

public string[]? Values { get; set; }

Property Value

string[]

Remarks

The format for Value depends on the type of key you specify.

    "Values": [ "s3://doc-example-bucket/my-folder" ]

      "Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]

        "Values": [ "MyOtherDocument/3/my-other-file.py" ]

        However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:

        "Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]

        Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-document-attachmentssource.html#cfn-ssm-document-attachmentssource-values