@Stability(value=Stable)
public static interface CfnDocument.AttachmentsSourceProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
AttachmentsSourceProperty attachmentsSourceProperty = AttachmentsSourceProperty.builder()
.key("key")
.name("name")
.values(List.of("values"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDocument.AttachmentsSourceProperty.Builder
A builder for
CfnDocument.AttachmentsSourceProperty |
static class |
CfnDocument.AttachmentsSourceProperty.Jsii$Proxy
An implementation for
CfnDocument.AttachmentsSourceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDocument.AttachmentsSourceProperty.Builder |
builder() |
default String |
getKey()
The key of a key-value pair that identifies the location of an attachment to a document.
|
default String |
getName()
The name of the document attachment file.
|
default List<String> |
getValues()
The value of a key-value pair that identifies the location of an attachment to a document.
|
@Stability(value=Stable) @Nullable default String getKey()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default List<String> getValues()
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" ]
@Stability(value=Stable) static CfnDocument.AttachmentsSourceProperty.Builder builder()
Copyright © 2022. All rights reserved.