AWSResourceProperty Struct
Defines an AWS resource to be monitored, including its type, ARN, and optional metadata.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
declare const resourceMetadata: any;
const aWSResourceProperty: devopsagent.CfnAssociation.AWSResourceProperty = {
resourceArn: 'resourceArn',
// the properties below are optional
resourceMetadata: resourceMetadata,
resourceType: 'resourceType',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devopsagent as devopsagent
# resource_metadata: Any
a_ws_resource_property = devopsagent.CfnAssociation.AWSResourceProperty(
resource_arn="resourceArn",
# the properties below are optional
resource_metadata=resource_metadata,
resource_type="resourceType"
)
java
// 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;
AWSResourceProperty aWSResourceProperty = AWSResourceProperty.builder()
.resourceArn("resourceArn")
// the properties below are optional
.resourceMetadata(resourceMetadata)
.resourceType("resourceType")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DevOpsAgent;
var resourceMetadata;
var aWSResourceProperty = new AWSResourceProperty {
ResourceArn = "resourceArn",
// the properties below are optional
ResourceMetadata = resourceMetadata,
ResourceType = "resourceType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var resourceMetadata interface{}
aWSResourceProperty := &AWSResourceProperty{
ResourceArn: jsii.String("resourceArn"),
// the properties below are optional
ResourceMetadata: resourceMetadata,
ResourceType: jsii.String("resourceType"),
}
Properties
The Amazon Resource Name (ARN) of the resource.
resourceMetadataoptionalanyresource_metadataoptionalAnyresourceMetadataoptionalObjectResourceMetadataoptionalobjectResourceMetadataoptionalinterface{} #Additional metadata specific to the resource.
This is an optional JSON object that can include resource-specific information to provide additional context for monitoring and management.
resourceTypeoptionalstringresource_typeoptionalstrresourceTypeoptionalStringResourceTypeoptionalstringResourceTypeoptional*string #Resource type.