Table of Contents

Interface CfnDocument.IAttachmentsSourceProperty

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 interface CfnDocument.IAttachmentsSourceProperty

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

Properties

Key

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

string? Key { get; }

Property Value

string

Remarks

Name

The name of the document attachment file.

string? Name { get; }

Property Value

string

Remarks

Values

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

string[]? Values { get; }

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