AmpConfigurationProperty Struct
The AmpConfiguration structure defines the Amazon Managed Service for Prometheus instance a scraper should send metrics to.
| 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_aps as aps } from 'aws-cdk-lib';
const ampConfigurationProperty: aps.CfnScraper.AmpConfigurationProperty = {
workspaceArn: 'workspaceArn',
};
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
// 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();
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"
};
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
workspaceArnstringworkspace_arnstrworkspaceArnStringWorkspaceArnstringWorkspaceArn*string required #ARN of the Amazon Managed Service for Prometheus workspace.