Skip to content
v2.278.0

ApiKeyCredentialProperty Struct ​

API-key credential material that can be rotated in place on update.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const apiKeyCredentialProperty: cloudwatch.CfnIntegration.ApiKeyCredentialProperty = {
  apiKeyValue: 'apiKeyValue',
};
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_cloudwatch as cloudwatch

api_key_credential_property = cloudwatch.CfnIntegration.ApiKeyCredentialProperty(
    api_key_value="apiKeyValue"
)
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.cloudwatch.*;

ApiKeyCredentialProperty apiKeyCredentialProperty = ApiKeyCredentialProperty.builder()
        .apiKeyValue("apiKeyValue")
        .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.CloudWatch;

var apiKeyCredentialProperty = new ApiKeyCredentialProperty {
    ApiKeyValue = "apiKeyValue"
};
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"

apiKeyCredentialProperty := &ApiKeyCredentialProperty{
	ApiKeyValue: jsii.String("apiKeyValue"),
}

Properties ​

apiKeyValuestringapi_key_valuestrapiKeyValueStringApiKeyValuestringApiKeyValue*string required #