Class CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty>
- Enclosing interface:
CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty
@Stability(Stable)
public static final class CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientCredentials(IResolvable clientCredentials) clientCredentials(CfnReplicator.KafkaClusterOAuthClientCredentialsProperty clientCredentials) clientCredentialsAssertion(IResolvable clientCredentialsAssertion) clientCredentialsAssertion(CfnReplicator.KafkaClusterOAuthClientCredentialsAssertionProperty clientCredentialsAssertion) iamJwtBearer(IResolvable iamJwtBearer) tokenEndpointAuthenticationMethod(String tokenEndpointAuthenticationMethod) tokenEndpointTlsCertificateArn(String tokenEndpointTlsCertificateArn) tokenEndpointUrl(String tokenEndpointUrl)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenEndpointAuthenticationMethod
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder tokenEndpointAuthenticationMethod(String tokenEndpointAuthenticationMethod) Sets the value ofCfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.getTokenEndpointAuthenticationMethod()- Parameters:
tokenEndpointAuthenticationMethod- How client credentials are sent to the identity provider's token endpoint. This parameter is required.- Returns:
this
-
tokenEndpointUrl
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder tokenEndpointUrl(String tokenEndpointUrl) Sets the value ofCfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.getTokenEndpointUrl()- Parameters:
tokenEndpointUrl- The HTTPS URL of the OAuth token endpoint that vends OAuth Bearer tokens per RFC 6749. This parameter is required.- Returns:
this
-
clientCredentials
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentials(IResolvable clientCredentials) Sets the value ofCfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.getClientCredentials()- Parameters:
clientCredentials- Details for SASL/OAUTHBEARER using the standard client_credentials grant. The referenced secret must contain client_id and client_secret.- Returns:
this
-
clientCredentials
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentials(CfnReplicator.KafkaClusterOAuthClientCredentialsProperty clientCredentials) Sets the value ofCfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.getClientCredentials()- Parameters:
clientCredentials- Details for SASL/OAUTHBEARER using the standard client_credentials grant. The referenced secret must contain client_id and client_secret.- Returns:
this
-
clientCredentialsAssertion
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentialsAssertion(IResolvable clientCredentialsAssertion) Sets the value ofCfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.getClientCredentialsAssertion()- Parameters:
clientCredentialsAssertion- Details for SASL/OAUTHBEARER using the client credentials grant with a JWT client assertion (RFC 7521/7523 Section 2.2). An STS-vended JWT is used as the client_assertion.- Returns:
this
-
clientCredentialsAssertion
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentialsAssertion(CfnReplicator.KafkaClusterOAuthClientCredentialsAssertionProperty clientCredentialsAssertion) Sets the value ofCfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.getClientCredentialsAssertion()- Parameters:
clientCredentialsAssertion- Details for SASL/OAUTHBEARER using the client credentials grant with a JWT client assertion (RFC 7521/7523 Section 2.2). An STS-vended JWT is used as the client_assertion.- Returns:
this
-
iamJwtBearer
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder iamJwtBearer(IResolvable iamJwtBearer) - Parameters:
iamJwtBearer- Details for SASL/OAUTHBEARER using the JWT Bearer assertion grant (RFC 7523). An STS-vended JWT is used as the assertion.- Returns:
this
-
iamJwtBearer
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder iamJwtBearer(CfnReplicator.KafkaClusterOAuthIamJwtBearerProperty iamJwtBearer) - Parameters:
iamJwtBearer- Details for SASL/OAUTHBEARER using the JWT Bearer assertion grant (RFC 7523). An STS-vended JWT is used as the assertion.- Returns:
this
-
scope
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder scope(String scope) - Parameters:
scope- OAuth scope to request. Included in the token request if provided.- Returns:
this
-
tokenEndpointTlsCertificateArn
@Stability(Stable) public CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder tokenEndpointTlsCertificateArn(String tokenEndpointTlsCertificateArn) Sets the value ofCfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty.getTokenEndpointTlsCertificateArn()- Parameters:
tokenEndpointTlsCertificateArn- Secrets Manager ARN containing a custom CA certificate for the identity provider. Required only if the identity provider uses a private CA.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty>- Returns:
- a new instance of
CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty - Throws:
NullPointerException- if any required attribute was not provided
-