# AWSResourceProperty

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

- Source: Generated at build time
- Type last changed: v2.232.0 · 5 Dec 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `resourceArn`: string (required) — The Amazon Resource Name (ARN) of the resource.

- `resourceMetadata`: any — 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.

- `resourceType`: string — Resource type.
