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) The instance requirements for compute resources managed by the capacity provider.instanceRequirements(CfnCapacityProvider.InstanceRequirementsProperty instanceRequirements) The instance requirements for compute resources managed by the capacity provider.The ARN of the KMS key used to encrypt the capacity provider's resources.permissionsConfig(IResolvable permissionsConfig) The permissions configuration for the capacity provider.permissionsConfig(CfnCapacityProvider.CapacityProviderPermissionsConfigProperty permissionsConfig) The permissions configuration for the capacity provider.A key-value pair that provides metadata for the capacity provider.vpcConfig(IResolvable vpcConfig) The VPC configuration for the capacity provider.The 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) The permissions configuration for the capacity provider.- Parameters:
permissionsConfig- The permissions configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
permissionsConfig
@Stability(Stable) public CfnCapacityProvider.Builder permissionsConfig(CfnCapacityProvider.CapacityProviderPermissionsConfigProperty permissionsConfig) The permissions configuration for the capacity provider.- Parameters:
permissionsConfig- The permissions configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
The VPC configuration for the capacity provider.- Parameters:
vpcConfig- The VPC configuration for the capacity provider. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
@Stability(Stable) public CfnCapacityProvider.Builder vpcConfig(CfnCapacityProvider.CapacityProviderVpcConfigProperty vpcConfig) The VPC configuration for the capacity provider.- Parameters:
vpcConfig- The 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) The instance requirements for compute resources managed by the capacity provider.- Parameters:
instanceRequirements- The instance requirements for compute resources managed by the capacity provider. This parameter is required.- Returns:
this- See Also:
-
instanceRequirements
@Stability(Stable) public CfnCapacityProvider.Builder instanceRequirements(CfnCapacityProvider.InstanceRequirementsProperty instanceRequirements) The instance requirements for compute resources managed by the capacity provider.- Parameters:
instanceRequirements- The instance requirements for compute resources managed by the capacity provider. This parameter is required.- Returns:
this- See Also:
-
kmsKeyArn
The ARN of the KMS key used to encrypt the capacity provider's resources.- Parameters:
kmsKeyArn- The ARN of the KMS key used to encrypt the capacity provider's resources. This parameter is required.- Returns:
this- See Also:
-
tags
A key-value pair that provides metadata for the capacity provider.- Parameters:
tags- A key-value pair that provides metadata for 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.
-