Interface CfnAssociation.SourceAwsConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAssociation.SourceAwsConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnAssociation
@Stability(Stable)
public static interface CfnAssociation.SourceAwsConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Configuration for AWS source account integration.
Specifies the account ID, assumable role ARN, and resources to be monitored in the source account.
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.devopsagent.*;
Object resourceMetadata;
SourceAwsConfigurationProperty sourceAwsConfigurationProperty = SourceAwsConfigurationProperty.builder()
.accountId("accountId")
.accountType("accountType")
.assumableRoleArn("assumableRoleArn")
// the properties below are optional
.resources(List.of(AWSResourceProperty.builder()
.resourceArn("resourceArn")
// the properties below are optional
.resourceMetadata(resourceMetadata)
.resourceType("resourceType")
.build()))
.tags(List.of(KeyValuePairProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAssociation.SourceAwsConfigurationPropertystatic final classAn implementation forCfnAssociation.SourceAwsConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Account ID corresponding to the provided resources.Account Type 'source' for AWS DevOps Agent monitoring.Role ARN to be assumed by AWS DevOps Agent to operate on behalf of customer.default ObjectList of resources to monitor.default List<CfnAssociation.KeyValuePairProperty> getTags()List of tags as key-value pairs, used to identify resources for topology crawl.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccountId
Account ID corresponding to the provided resources.- See Also:
-
getAccountType
Account Type 'source' for AWS DevOps Agent monitoring.- See Also:
-
getAssumableRoleArn
Role ARN to be assumed by AWS DevOps Agent to operate on behalf of customer.- See Also:
-
getResources
List of resources to monitor.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAssociation.AWSResourceProperty>- See Also:
-
getTags
List of tags as key-value pairs, used to identify resources for topology crawl.- See Also:
-
builder
-