Class CfnCapacityProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnCapacityProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderProps>
- Enclosing interface:
CfnCapacityProviderProps
@Stability(Stable)
public static final class CfnCapacityProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderProps>
A builder for
CfnCapacityProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityProviderName(String capacityProviderName) Sets the value ofCfnCapacityProviderProps.getCapacityProviderName()capacityProviderScalingConfig(IResolvable capacityProviderScalingConfig) Sets the value ofCfnCapacityProviderProps.getCapacityProviderScalingConfig()capacityProviderScalingConfig(CfnCapacityProvider.CapacityProviderScalingConfigProperty capacityProviderScalingConfig) Sets the value ofCfnCapacityProviderProps.getCapacityProviderScalingConfig()instanceRequirements(IResolvable instanceRequirements) Sets the value ofCfnCapacityProviderProps.getInstanceRequirements()instanceRequirements(CfnCapacityProvider.InstanceRequirementsProperty instanceRequirements) Sets the value ofCfnCapacityProviderProps.getInstanceRequirements()Sets the value ofCfnCapacityProviderProps.getKmsKeyArn()permissionsConfig(IResolvable permissionsConfig) Sets the value ofCfnCapacityProviderProps.getPermissionsConfig()permissionsConfig(CfnCapacityProvider.CapacityProviderPermissionsConfigProperty permissionsConfig) Sets the value ofCfnCapacityProviderProps.getPermissionsConfig()Sets the value ofCfnCapacityProviderProps.getTags()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnCapacityProviderProps.getVpcConfig()Sets the value ofCfnCapacityProviderProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
permissionsConfig
@Stability(Stable) public CfnCapacityProviderProps.Builder permissionsConfig(IResolvable permissionsConfig) Sets the value ofCfnCapacityProviderProps.getPermissionsConfig()- Parameters:
permissionsConfig- IAM permissions configuration for the capacity provider. This parameter is required.- Returns:
this
-
permissionsConfig
@Stability(Stable) public CfnCapacityProviderProps.Builder permissionsConfig(CfnCapacityProvider.CapacityProviderPermissionsConfigProperty permissionsConfig) Sets the value ofCfnCapacityProviderProps.getPermissionsConfig()- Parameters:
permissionsConfig- IAM permissions configuration for the capacity provider. This parameter is required.- Returns:
this
-
vpcConfig
Sets the value ofCfnCapacityProviderProps.getVpcConfig()- Parameters:
vpcConfig- VPC configuration for the capacity provider. This parameter is required.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnCapacityProviderProps.Builder vpcConfig(CfnCapacityProvider.CapacityProviderVpcConfigProperty vpcConfig) Sets the value ofCfnCapacityProviderProps.getVpcConfig()- Parameters:
vpcConfig- VPC configuration for the capacity provider. This parameter is required.- Returns:
this
-
capacityProviderName
@Stability(Stable) public CfnCapacityProviderProps.Builder capacityProviderName(String capacityProviderName) Sets the value ofCfnCapacityProviderProps.getCapacityProviderName()- Parameters:
capacityProviderName- The name of the capacity provider. The name must be unique within your AWS account and region. If you don't specify a name, CloudFormation generates one.- Returns:
this
-
capacityProviderScalingConfig
@Stability(Stable) public CfnCapacityProviderProps.Builder capacityProviderScalingConfig(IResolvable capacityProviderScalingConfig) Sets the value ofCfnCapacityProviderProps.getCapacityProviderScalingConfig()- Parameters:
capacityProviderScalingConfig- The scaling configuration for the capacity provider.- Returns:
this
-
capacityProviderScalingConfig
@Stability(Stable) public CfnCapacityProviderProps.Builder capacityProviderScalingConfig(CfnCapacityProvider.CapacityProviderScalingConfigProperty capacityProviderScalingConfig) Sets the value ofCfnCapacityProviderProps.getCapacityProviderScalingConfig()- Parameters:
capacityProviderScalingConfig- The scaling configuration for the capacity provider.- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnCapacityProviderProps.Builder instanceRequirements(IResolvable instanceRequirements) Sets the value ofCfnCapacityProviderProps.getInstanceRequirements()- Parameters:
instanceRequirements- Specifications for the types of EC2 instances that the capacity provider can use.- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnCapacityProviderProps.Builder instanceRequirements(CfnCapacityProvider.InstanceRequirementsProperty instanceRequirements) Sets the value ofCfnCapacityProviderProps.getInstanceRequirements()- Parameters:
instanceRequirements- Specifications for the types of EC2 instances that the capacity provider can use.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnCapacityProviderProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.- Returns:
this
-
tags
Sets the value ofCfnCapacityProviderProps.getTags()- Parameters:
tags- A list of tags to apply to the capacity provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderProps>- Returns:
- a new instance of
CfnCapacityProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-