Class LambdaFunctionUrlCors.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.lambda_function_url.LambdaFunctionUrlCors.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaFunctionUrlCors>
- Enclosing interface:
- LambdaFunctionUrlCors
@Stability(Stable) public static final class LambdaFunctionUrlCors.Builder extends Object implements software.amazon.jsii.Builder<LambdaFunctionUrlCors>
A builder forLambdaFunctionUrlCors
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allowCredentials
@Stability(Stable) public LambdaFunctionUrlCors.Builder allowCredentials(Boolean allowCredentials)
Sets the value ofLambdaFunctionUrlCors.getAllowCredentials()- Parameters:
allowCredentials- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lambda_function_url#allow_credentials LambdaFunctionUrl#allow_credentials}.- Returns:
this
-
allowCredentials
@Stability(Stable) public LambdaFunctionUrlCors.Builder allowCredentials(com.hashicorp.cdktf.IResolvable allowCredentials)
Sets the value ofLambdaFunctionUrlCors.getAllowCredentials()- Parameters:
allowCredentials- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lambda_function_url#allow_credentials LambdaFunctionUrl#allow_credentials}.- Returns:
this
-
allowHeaders
@Stability(Stable) public LambdaFunctionUrlCors.Builder allowHeaders(List<String> allowHeaders)
Sets the value ofLambdaFunctionUrlCors.getAllowHeaders()- Parameters:
allowHeaders- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lambda_function_url#allow_headers LambdaFunctionUrl#allow_headers}.- Returns:
this
-
allowMethods
@Stability(Stable) public LambdaFunctionUrlCors.Builder allowMethods(List<String> allowMethods)
Sets the value ofLambdaFunctionUrlCors.getAllowMethods()- Parameters:
allowMethods- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lambda_function_url#allow_methods LambdaFunctionUrl#allow_methods}.- Returns:
this
-
allowOrigins
@Stability(Stable) public LambdaFunctionUrlCors.Builder allowOrigins(List<String> allowOrigins)
Sets the value ofLambdaFunctionUrlCors.getAllowOrigins()- Parameters:
allowOrigins- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lambda_function_url#allow_origins LambdaFunctionUrl#allow_origins}.- Returns:
this
-
exposeHeaders
@Stability(Stable) public LambdaFunctionUrlCors.Builder exposeHeaders(List<String> exposeHeaders)
Sets the value ofLambdaFunctionUrlCors.getExposeHeaders()- Parameters:
exposeHeaders- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lambda_function_url#expose_headers LambdaFunctionUrl#expose_headers}.- Returns:
this
-
maxAge
@Stability(Stable) public LambdaFunctionUrlCors.Builder maxAge(Number maxAge)
Sets the value ofLambdaFunctionUrlCors.getMaxAge()- Parameters:
maxAge- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lambda_function_url#max_age LambdaFunctionUrl#max_age}.- Returns:
this
-
build
@Stability(Stable) public LambdaFunctionUrlCors build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaFunctionUrlCors>- Returns:
- a new instance of
LambdaFunctionUrlCors - Throws:
NullPointerException- if any required attribute was not provided
-
-