Class LambdaToSsmstringparameterProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.lambdassmstringparameter.LambdaToSsmstringparameterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaToSsmstringparameterProps>
- Enclosing interface:
LambdaToSsmstringparameterProps
public static final class LambdaToSsmstringparameterProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaToSsmstringparameterProps>
A builder for
LambdaToSsmstringparameterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofLambdaToSsmstringparameterProps.getDeployVpc()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToSsmstringparameterProps.getExistingLambdaObj()existingStringParameterObj(software.amazon.awscdk.services.ssm.StringParameter existingStringParameterObj) Sets the value ofLambdaToSsmstringparameterProps.getExistingStringParameterObj()existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToSsmstringparameterProps.getExistingVpc()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToSsmstringparameterProps.getLambdaFunctionProps()stringParameterEnvironmentVariableName(String stringParameterEnvironmentVariableName) stringParameterPermissions(String stringParameterPermissions) Sets the value ofLambdaToSsmstringparameterProps.getStringParameterPermissions()stringParameterProps(software.amazon.awscdk.services.ssm.StringParameterProps stringParameterProps) Sets the value ofLambdaToSsmstringparameterProps.getStringParameterProps()vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToSsmstringparameterProps.getVpcProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deployVpc
Sets the value ofLambdaToSsmstringparameterProps.getDeployVpc()- Parameters:
deployVpc- Whether to deploy a new VPC.- Returns:
this
-
existingLambdaObj
public LambdaToSsmstringparameterProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToSsmstringparameterProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, if this is set then the lambdaFunctionProps is ignored.- Returns:
this
-
existingStringParameterObj
public LambdaToSsmstringparameterProps.Builder existingStringParameterObj(software.amazon.awscdk.services.ssm.StringParameter existingStringParameterObj) Sets the value ofLambdaToSsmstringparameterProps.getExistingStringParameterObj()- Parameters:
existingStringParameterObj- Existing instance of SSM String parameter object, If this is set then the stringParameterProps is ignored.- Returns:
this
-
existingVpc
public LambdaToSsmstringparameterProps.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToSsmstringparameterProps.getExistingVpc()- Parameters:
existingVpc- An existing VPC for the construct to use (construct will NOT create a new VPC in this case).- Returns:
this
-
lambdaFunctionProps
public LambdaToSsmstringparameterProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToSsmstringparameterProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function.- Returns:
this
-
stringParameterEnvironmentVariableName
public LambdaToSsmstringparameterProps.Builder stringParameterEnvironmentVariableName(String stringParameterEnvironmentVariableName) - Parameters:
stringParameterEnvironmentVariableName- Optional Name for the Lambda function environment variable set to the name of the parameter.- Returns:
this
-
stringParameterPermissions
public LambdaToSsmstringparameterProps.Builder stringParameterPermissions(String stringParameterPermissions) Sets the value ofLambdaToSsmstringparameterProps.getStringParameterPermissions()- Parameters:
stringParameterPermissions- Optional SSM String parameter permissions to grant to the Lambda function. One of the following may be specified: "Read", "ReadWrite".- Returns:
this
-
stringParameterProps
public LambdaToSsmstringparameterProps.Builder stringParameterProps(software.amazon.awscdk.services.ssm.StringParameterProps stringParameterProps) Sets the value ofLambdaToSsmstringparameterProps.getStringParameterProps()- Parameters:
stringParameterProps- Optional user provided props to override the default props for SSM String parameter. If existingStringParameterObj is not set stringParameterProps is required. The only supported string parameter type is ParameterType.STRING.- Returns:
this
-
vpcProps
public LambdaToSsmstringparameterProps.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToSsmstringparameterProps.getVpcProps()- Parameters:
vpcProps- Properties to override default properties if deployVpc is true.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaToSsmstringparameterProps>- Returns:
- a new instance of
LambdaToSsmstringparameterProps - Throws:
NullPointerException- if any required attribute was not provided
-