Interface CfnApiKeyCredentialProviderProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApiKeyCredentialProviderProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-07-02T13:32:33.859Z")
@Stability(Stable)
public interface CfnApiKeyCredentialProviderProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnApiKeyCredentialProvider.
Example:
// 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.*;
CfnApiKeyCredentialProviderProps cfnApiKeyCredentialProviderProps = CfnApiKeyCredentialProviderProps.builder()
.name("name")
// the properties below are optional
.apiKey("apiKey")
.apiKeySecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.apiKeySecretSource("apiKeySecretSource")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApiKeyCredentialProviderPropsstatic final classAn implementation forCfnApiKeyCredentialProviderProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe API key to use for authentication.default ObjectA reference to a customer-provided secret stored in AWS Secrets Manager.default StringThe source of the API key secret.getName()The name of the API key credential provider.getTags()Tags to assign to the API key credential provider.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the API key credential provider.- See Also:
-
getApiKey
The API key to use for authentication.- See Also:
-
getApiKeySecretConfig
A reference to a customer-provided secret stored in AWS Secrets Manager.Returns union: either
IResolvableorCfnApiKeyCredentialProvider.SecretReferenceProperty- See Also:
-
getApiKeySecretSource
The source of the API key secret.Use MANAGED for service-managed secrets or EXTERNAL for customer-provided secrets.
- See Also:
-
getTags
Tags to assign to the API key credential provider.- See Also:
-
builder
-