KafkaClusterOAuthClientCredentialsProperty Struct
Details for SASL/OAUTHBEARER using the standard client_credentials grant.
The referenced secret must contain client_id and client_secret.
| Source | |
|---|---|
| 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_msk as msk } from 'aws-cdk-lib';
const kafkaClusterOAuthClientCredentialsProperty: msk.CfnReplicator.KafkaClusterOAuthClientCredentialsProperty = {
tokenRequestSecretArn: 'tokenRequestSecretArn',
};
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_msk as msk
kafka_cluster_o_auth_client_credentials_property = msk.CfnReplicator.KafkaClusterOAuthClientCredentialsProperty(
token_request_secret_arn="tokenRequestSecretArn"
)
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.msk.*;
KafkaClusterOAuthClientCredentialsProperty kafkaClusterOAuthClientCredentialsProperty = KafkaClusterOAuthClientCredentialsProperty.builder()
.tokenRequestSecretArn("tokenRequestSecretArn")
.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.MSK;
var kafkaClusterOAuthClientCredentialsProperty = new KafkaClusterOAuthClientCredentialsProperty {
TokenRequestSecretArn = "tokenRequestSecretArn"
};
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"
kafkaClusterOAuthClientCredentialsProperty := &KafkaClusterOAuthClientCredentialsProperty{
TokenRequestSecretArn: jsii.String("tokenRequestSecretArn"),
}
Properties
tokenRequestSecretArnstringtoken_request_secret_arnstrtokenRequestSecretArnStringTokenRequestSecretArnstringTokenRequestSecretArn*string required #Secrets Manager ARN of the secret containing the client_id and client_secret used to obtain an OAuth Bearer token via the client_credentials grant.