Class LambdaToOpenSearch.Builder
java.lang.Object
software.amazon.awsconstructs.services.lambdaopensearch.LambdaToOpenSearch.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaToOpenSearch>
- Enclosing class:
LambdaToOpenSearch
public static final class LambdaToOpenSearch.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaToOpenSearch>
A fluent builder for
LambdaToOpenSearch.-
Method Summary
Modifier and TypeMethodDescriptionbuild()cognitoDomainName(String cognitoDomainName) Optional Amazon Cognito domain name.static LambdaToOpenSearch.BuildercreateCloudWatchAlarms(Boolean createCloudWatchAlarms) Whether to create recommended CloudWatch alarms.Whether to deploy a new VPC.domainEndpointEnvironmentVariableName(String domainEndpointEnvironmentVariableName) Optional Name for the Lambda function environment variable set to the domain endpoint.existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) An existing VPC for the construct to use (construct will NOT create a new VPC in this case).lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) User provided props to override the default props for the Lambda function.openSearchDomainName(String openSearchDomainName) Domain name for the OpenSearch Service.openSearchDomainProps(software.amazon.awscdk.services.opensearchservice.CfnDomainProps openSearchDomainProps) Optional user provided props to override the default props for the OpenSearch Service.vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Properties to override default properties if deployVpc is true.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a a scope-unique id.
- Returns:
- a new instance of
LambdaToOpenSearch.Builder.
-
openSearchDomainName
Domain name for the OpenSearch Service.Default: - None
- Parameters:
openSearchDomainName- Domain name for the OpenSearch Service. This parameter is required.- Returns:
this
-
cognitoDomainName
Optional Amazon Cognito domain name.If omitted the Amazon Cognito domain will default to the OpenSearch Service domain name.
Default: - the OpenSearch Service domain name
- Parameters:
cognitoDomainName- Optional Amazon Cognito domain name. This parameter is required.- Returns:
this
-
createCloudWatchAlarms
Whether to create recommended CloudWatch alarms.Default: - Alarms are created
- Parameters:
createCloudWatchAlarms- Whether to create recommended CloudWatch alarms. This parameter is required.- Returns:
this
-
deployVpc
Whether to deploy a new VPC.Default: - false
- Parameters:
deployVpc- Whether to deploy a new VPC. This parameter is required.- Returns:
this
-
domainEndpointEnvironmentVariableName
public LambdaToOpenSearch.Builder domainEndpointEnvironmentVariableName(String domainEndpointEnvironmentVariableName) Optional Name for the Lambda function environment variable set to the domain endpoint.Default: - DOMAIN_ENDPOINT
- Parameters:
domainEndpointEnvironmentVariableName- Optional Name for the Lambda function environment variable set to the domain endpoint. This parameter is required.- Returns:
this
-
existingLambdaObj
public LambdaToOpenSearch.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.Default: - None
- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error. This parameter is required.- Returns:
this
-
existingVpc
An existing VPC for the construct to use (construct will NOT create a new VPC in this case).Default: - None
- Parameters:
existingVpc- An existing VPC for the construct to use (construct will NOT create a new VPC in this case). This parameter is required.- Returns:
this
-
lambdaFunctionProps
public LambdaToOpenSearch.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) User provided props to override the default props for the Lambda function.Default: - Default props are used
- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function. This parameter is required.- Returns:
this
-
openSearchDomainProps
public LambdaToOpenSearch.Builder openSearchDomainProps(software.amazon.awscdk.services.opensearchservice.CfnDomainProps openSearchDomainProps) Optional user provided props to override the default props for the OpenSearch Service.Default: - Default props are used
- Parameters:
openSearchDomainProps- Optional user provided props to override the default props for the OpenSearch Service. This parameter is required.- Returns:
this
-
vpcProps
Properties to override default properties if deployVpc is true.Default: - DefaultIsolatedVpcProps() in vpc-defaults.ts
- Parameters:
vpcProps- Properties to override default properties if deployVpc is true. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaToOpenSearch>- Returns:
- a newly built instance of
LambdaToOpenSearch.
-