# ApiKeyCredentialProviderAttributes

Attributes for importing an existing API key credential provider.

Used as argument in: [ApiKeyCredentialProvider.fromApiKeyCredentialProviderAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialProvider.html#fromapikeycredentialproviderattributes)

- Source: [`lib/identity/api-key-credential-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/identity/api-key-credential-provider.ts#L159)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const apiKeyCredentialProviderAttributes: bedrock_agentcore_alpha.ApiKeyCredentialProviderAttributes = {
  credentialProviderArn: 'credentialProviderArn',

  // the properties below are optional
  apiKeySecretArn: 'apiKeySecretArn',
  createdTime: 'createdTime',
  lastUpdatedTime: 'lastUpdatedTime',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha

api_key_credential_provider_attributes = bedrock_agentcore_alpha.ApiKeyCredentialProviderAttributes(
    credential_provider_arn="credentialProviderArn",

    # the properties below are optional
    api_key_secret_arn="apiKeySecretArn",
    created_time="createdTime",
    last_updated_time="lastUpdatedTime"
)
```

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.bedrock.agentcore.alpha.*;

ApiKeyCredentialProviderAttributes apiKeyCredentialProviderAttributes = ApiKeyCredentialProviderAttributes.builder()
        .credentialProviderArn("credentialProviderArn")

        // the properties below are optional
        .apiKeySecretArn("apiKeySecretArn")
        .createdTime("createdTime")
        .lastUpdatedTime("lastUpdatedTime")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;

var apiKeyCredentialProviderAttributes = new ApiKeyCredentialProviderAttributes {
    CredentialProviderArn = "credentialProviderArn",

    // the properties below are optional
    ApiKeySecretArn = "apiKeySecretArn",
    CreatedTime = "createdTime",
    LastUpdatedTime = "lastUpdatedTime"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"

apiKeyCredentialProviderAttributes := &ApiKeyCredentialProviderAttributes{
	CredentialProviderArn: jsii.String("credentialProviderArn"),

	// the properties below are optional
	ApiKeySecretArn: jsii.String("apiKeySecretArn"),
	CreatedTime: jsii.String("createdTime"),
	LastUpdatedTime: jsii.String("lastUpdatedTime"),
}
```

## Properties

- `apiKeySecretArn`: string — ARN of the Secrets Manager secret for the API key, if known.

  **Default:** not set; required for {@link ApiKeyCredentialProvider.bindForGatewayApiKeyTarget } on imported providers

- `createdTime`: string — Resource creation time.

  **Default:** not set

- `credentialProviderArn`: string (required) — ARN of the credential provider.

- `lastUpdatedTime`: string — Resource last-updated time.

  **Default:** not set
