Skip to content
v2.274.0

AWSResourceProperty Struct ​

Defines an AWS resource to be monitored, including its type, ARN, and optional metadata.

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',
};

Properties ​

resourceArnstringresource_arnstrresourceArnStringResourceArnstringResourceArn*stringrequired#
The Amazon Resource Name (ARN) of the resource.
resourceMetadataanyresource_metadataAnyresourceMetadataObjectResourceMetadataobjectResourceMetadatainterface{}#
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.

resourceTypestringresource_typestrresourceTypeStringResourceTypestringResourceType*string#
Resource type.