Class CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.msk.CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty>
- Enclosing interface:
CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty
@Stability(Stable)
public static final class CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientCredentials(CfnReplicatorPropsMixin.KafkaClusterOAuthClientCredentialsProperty clientCredentials) clientCredentials(IResolvable clientCredentials) clientCredentialsAssertion(CfnReplicatorPropsMixin.KafkaClusterOAuthClientCredentialsAssertionProperty clientCredentialsAssertion) clientCredentialsAssertion(IResolvable clientCredentialsAssertion) iamJwtBearer(IResolvable iamJwtBearer) tokenEndpointAuthenticationMethod(String tokenEndpointAuthenticationMethod) tokenEndpointTlsCertificateArn(String tokenEndpointTlsCertificateArn) tokenEndpointUrl(String tokenEndpointUrl)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientCredentials
@Stability(Stable) public CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentials(IResolvable clientCredentials) Sets the value ofCfnReplicatorPropsMixin.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 CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentials(CfnReplicatorPropsMixin.KafkaClusterOAuthClientCredentialsProperty clientCredentials) Sets the value ofCfnReplicatorPropsMixin.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 CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentialsAssertion(IResolvable clientCredentialsAssertion) Sets the value ofCfnReplicatorPropsMixin.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 CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder clientCredentialsAssertion(CfnReplicatorPropsMixin.KafkaClusterOAuthClientCredentialsAssertionProperty clientCredentialsAssertion) Sets the value ofCfnReplicatorPropsMixin.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 CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder iamJwtBearer(IResolvable iamJwtBearer) Sets the value ofCfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.getIamJwtBearer()- 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 CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder iamJwtBearer(CfnReplicatorPropsMixin.KafkaClusterOAuthIamJwtBearerProperty iamJwtBearer) Sets the value ofCfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.getIamJwtBearer()- 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 CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder scope(String scope) Sets the value ofCfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.getScope()- Parameters:
scope- OAuth scope to request. Included in the token request if provided.- Returns:
this
-
tokenEndpointAuthenticationMethod
@Stability(Stable) public CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder tokenEndpointAuthenticationMethod(String tokenEndpointAuthenticationMethod) Sets the value ofCfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.getTokenEndpointAuthenticationMethod()- Parameters:
tokenEndpointAuthenticationMethod- How client credentials are sent to the identity provider's token endpoint.- Returns:
this
-
tokenEndpointTlsCertificateArn
@Stability(Stable) public CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder tokenEndpointTlsCertificateArn(String tokenEndpointTlsCertificateArn) Sets the value ofCfnReplicatorPropsMixin.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
-
tokenEndpointUrl
@Stability(Stable) public CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.Builder tokenEndpointUrl(String tokenEndpointUrl) Sets the value ofCfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty.getTokenEndpointUrl()- Parameters:
tokenEndpointUrl- The HTTPS URL of the OAuth token endpoint that vends OAuth Bearer tokens per RFC 6749.- Returns:
this
-
build
@Stability(Stable) public CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty>- Returns:
- a new instance of
CfnReplicatorPropsMixin.KafkaClusterSaslOAuthBearerAuthenticationProperty - Throws:
NullPointerException- if any required attribute was not provided
-