Class CfnCapacityProvider.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnCapacityProvider.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProvider>
- Enclosing class:
CfnCapacityProvider
@Stability(Stable)
public static final class CfnCapacityProvider.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProvider>
A fluent builder for
CfnCapacityProvider.-
Method Summary
Modifier and TypeMethodDescriptionbuild()capacityProviderName(String capacityProviderName) The name of the capacity provider.capacityProviderScalingConfig(IResolvable capacityProviderScalingConfig) The scaling configuration for the capacity provider.capacityProviderScalingConfig(CfnCapacityProvider.CapacityProviderScalingConfigProperty capacityProviderScalingConfig) The scaling configuration for the capacity provider.static CfnCapacityProvider.BuilderinstanceRequirements(IResolvable instanceRequirements) Specifications for the types of EC2 instances that the capacity provider can use.instanceRequirements(CfnCapacityProvider.InstanceRequirementsProperty instanceRequirements) Specifications for the types of EC2 instances that the capacity provider can use.The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.permissionsConfig(IResolvable permissionsConfig) IAM permissions configuration for the capacity provider.permissionsConfig(CfnCapacityProvider.CapacityProviderPermissionsConfigProperty permissionsConfig) IAM permissions configuration for the capacity provider.A list of tags to apply to the capacity provider.vpcConfig(IResolvable vpcConfig) VPC configuration for the capacity provider.VPC configuration for the capacity provider.
-
Method Details
-
create
@Stability(Stable) public static CfnCapacityProvider.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCapacityProvider.Builder.
-
permissionsConfig
@Stability(Stable) public CfnCapacityProvider.Builder permissionsConfig(IResolvable permissionsConfig) IAM permissions configuration for the capacity provider.- Parameters:
permissionsConfig- IAM permissions configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
permissionsConfig
@Stability(Stable) public CfnCapacityProvider.Builder permissionsConfig(CfnCapacityProvider.CapacityProviderPermissionsConfigProperty permissionsConfig) IAM permissions configuration for the capacity provider.- Parameters:
permissionsConfig- IAM permissions configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
VPC configuration for the capacity provider.- Parameters:
vpcConfig- VPC configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
@Stability(Stable) public CfnCapacityProvider.Builder vpcConfig(CfnCapacityProvider.CapacityProviderVpcConfigProperty vpcConfig) VPC configuration for the capacity provider.- Parameters:
vpcConfig- VPC configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
capacityProviderName
@Stability(Stable) public CfnCapacityProvider.Builder capacityProviderName(String 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.
- Parameters:
capacityProviderName- The name of the capacity provider. This parameter is required.- Returns:
this- See Also:
-
capacityProviderScalingConfig
@Stability(Stable) public CfnCapacityProvider.Builder capacityProviderScalingConfig(IResolvable capacityProviderScalingConfig) The scaling configuration for the capacity provider.- Parameters:
capacityProviderScalingConfig- The scaling configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
capacityProviderScalingConfig
@Stability(Stable) public CfnCapacityProvider.Builder capacityProviderScalingConfig(CfnCapacityProvider.CapacityProviderScalingConfigProperty capacityProviderScalingConfig) The scaling configuration for the capacity provider.- Parameters:
capacityProviderScalingConfig- The scaling configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
instanceRequirements
@Stability(Stable) public CfnCapacityProvider.Builder instanceRequirements(IResolvable instanceRequirements) Specifications for the types of EC2 instances that the capacity provider can use.- Parameters:
instanceRequirements- Specifications for the types of EC2 instances that the capacity provider can use. This parameter is required.- Returns:
this- See Also:
-
instanceRequirements
@Stability(Stable) public CfnCapacityProvider.Builder instanceRequirements(CfnCapacityProvider.InstanceRequirementsProperty instanceRequirements) Specifications for the types of EC2 instances that the capacity provider can use.- Parameters:
instanceRequirements- Specifications for the types of EC2 instances that the capacity provider can use. This parameter is required.- Returns:
this- See Also:
-
kmsKeyArn
The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.- Parameters:
kmsKeyArn- The ARN of the AWS Key Management Service (KMS) key used by the capacity provider. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tags to apply to the capacity provider.- Parameters:
tags- A list of tags to apply to the capacity provider. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProvider>- Returns:
- a newly built instance of
CfnCapacityProvider.
-