# AmpConfigurationProperty

The `AmpConfiguration` structure defines the Amazon Managed Service for Prometheus instance a scraper should send metrics to.

- Source: Generated at build time
- Type last changed: v2.135.0 · 2 Apr 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const ampConfigurationProperty: aps.CfnScraper.AmpConfigurationProperty = {
  workspaceArn: 'workspaceArn',
};
```

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_aps as aps

amp_configuration_property = aps.CfnScraper.AmpConfigurationProperty(
    workspace_arn="workspaceArn"
)
```

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.aps.*;

AmpConfigurationProperty ampConfigurationProperty = AmpConfigurationProperty.builder()
        .workspaceArn("workspaceArn")
        .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.APS;

var ampConfigurationProperty = new AmpConfigurationProperty {
    WorkspaceArn = "workspaceArn"
};
```

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"

ampConfigurationProperty := &AmpConfigurationProperty{
	WorkspaceArn: jsii.String("workspaceArn"),
}
```

## Properties

- `workspaceArn`: string (required) — ARN of the Amazon Managed Service for Prometheus workspace.
