Class SourceAccessConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.SourceAccessConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceAccessConfiguration>
- Enclosing interface:
- SourceAccessConfiguration
@Stability(Stable)
public static final class SourceAccessConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<SourceAccessConfiguration>
A builder for
SourceAccessConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSourceAccessConfiguration.getType()Sets the value ofSourceAccessConfiguration.getUri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public SourceAccessConfiguration.Builder type(SourceAccessConfigurationType type) Sets the value ofSourceAccessConfiguration.getType()- Parameters:
type- The type of authentication protocol or the VPC components for your event source. This parameter is required. For example: "SASL_SCRAM_512_AUTH".- Returns:
this
-
uri
Sets the value ofSourceAccessConfiguration.getUri()- Parameters:
uri- The value for your chosen configuration in type. This parameter is required. For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName". The exact string depends on the type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourceAccessConfiguration>- Returns:
- a new instance of
SourceAccessConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-