ApiKeyCredentialProviderAttributes Struct
Attributes for importing an existing API key credential provider.
| Source | aws-bedrockagentcore/lib/identity/api-key-credential-provider.ts |
|---|---|
| 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_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const apiKeyCredentialProviderAttributes: bedrockagentcore.ApiKeyCredentialProviderAttributes = {
credentialProviderArn: 'credentialProviderArn',
// the properties below are optional
apiKeySecretArn: 'apiKeySecretArn',
createdTime: 'createdTime',
lastUpdatedTime: 'lastUpdatedTime',
};
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_bedrockagentcore as bedrockagentcore
api_key_credential_provider_attributes = bedrockagentcore.ApiKeyCredentialProviderAttributes(
credential_provider_arn="credentialProviderArn",
# the properties below are optional
api_key_secret_arn="apiKeySecretArn",
created_time="createdTime",
last_updated_time="lastUpdatedTime"
)
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.bedrockagentcore.*;
ApiKeyCredentialProviderAttributes apiKeyCredentialProviderAttributes = ApiKeyCredentialProviderAttributes.builder()
.credentialProviderArn("credentialProviderArn")
// the properties below are optional
.apiKeySecretArn("apiKeySecretArn")
.createdTime("createdTime")
.lastUpdatedTime("lastUpdatedTime")
.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.BedrockAgentCore;
var apiKeyCredentialProviderAttributes = new ApiKeyCredentialProviderAttributes {
CredentialProviderArn = "credentialProviderArn",
// the properties below are optional
ApiKeySecretArn = "apiKeySecretArn",
CreatedTime = "createdTime",
LastUpdatedTime = "lastUpdatedTime"
};
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"
apiKeyCredentialProviderAttributes := &ApiKeyCredentialProviderAttributes{
CredentialProviderArn: jsii.String("credentialProviderArn"),
// the properties below are optional
ApiKeySecretArn: jsii.String("apiKeySecretArn"),
CreatedTime: jsii.String("createdTime"),
LastUpdatedTime: jsii.String("lastUpdatedTime"),
}
Properties
apiKeySecretArnoptionalstringapi_key_secret_arnoptionalstrapiKeySecretArnoptionalStringApiKeySecretArnoptionalstringApiKeySecretArnoptional*string #ARN of the Secrets Manager secret for the API key, if known.
Default: not set; required for {@link ApiKeyCredentialProvider.bindForGatewayApiKeyTarget } on imported providers
createdTimeoptionalstringcreated_timeoptionalstrcreatedTimeoptionalStringCreatedTimeoptionalstringCreatedTimeoptional*string #Resource creation time.
Default: not set
credentialProviderArnstringcredential_provider_arnstrcredentialProviderArnStringCredentialProviderArnstringCredentialProviderArn*string required #ARN of the credential provider.
lastUpdatedTimeoptionalstringlast_updated_timeoptionalstrlastUpdatedTimeoptionalStringLastUpdatedTimeoptionalstringLastUpdatedTimeoptional*string #Resource last-updated time.
Default: not set