Interface CfnAssociation.AWSConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAssociation.AWSConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnAssociation
@Stability(Stable)
public static interface CfnAssociation.AWSConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Configuration for AWS monitor account integration.
Specifies the account ID, assumable role ARN, and resources to be monitored in the primary monitoring 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;
AWSConfigurationProperty aWSConfigurationProperty = AWSConfigurationProperty.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.AWSConfigurationPropertystatic final classAn implementation forCfnAssociation.AWSConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Account ID corresponding to the provided resources.Account Type 'monitor' for AWS DevOps Agent monitoring.Role ARN used by AWS DevOps Agent to access resources in the primary account.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 'monitor' for AWS DevOps Agent monitoring.- See Also:
-
getAssumableRoleArn
Role ARN used by AWS DevOps Agent to access resources in the primary account.- 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
-