# IntegrationCredentialProperty

Write-only API-key credential material for the integration.

Stored encrypted and never returned on read.

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

TypeScript:

```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 integrationCredentialProperty: cloudwatch.CfnIntegration.IntegrationCredentialProperty = {
  apiKeyCredential: {
    apiKeyValue: 'apiKeyValue',
  },
};
```

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_cloudwatch as cloudwatch

integration_credential_property = cloudwatch.CfnIntegration.IntegrationCredentialProperty(
    api_key_credential=cloudwatch.CfnIntegration.ApiKeyCredentialProperty(
        api_key_value="apiKeyValue"
    )
)
```

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

IntegrationCredentialProperty integrationCredentialProperty = IntegrationCredentialProperty.builder()
        .apiKeyCredential(ApiKeyCredentialProperty.builder()
                .apiKeyValue("apiKeyValue")
                .build())
        .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.CloudWatch;

var integrationCredentialProperty = new IntegrationCredentialProperty {
    ApiKeyCredential = new ApiKeyCredentialProperty {
        ApiKeyValue = "apiKeyValue"
    }
};
```

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"

integrationCredentialProperty := &IntegrationCredentialProperty{
	ApiKeyCredential: &ApiKeyCredentialProperty{
		ApiKeyValue: jsii.String("apiKeyValue"),
	},
}
```

## Properties

- `apiKeyCredential`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIntegration.ApiKeyCredentialProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnIntegration.ApiKeyCredentialProperty.html) (required) — API-key credential material that can be rotated in place on update.
