CfnCapacityProviderMixinProps

class aws_cdk.mixins_preview.aws_lambda.mixins.CfnCapacityProviderMixinProps(*, capacity_provider_name=None, capacity_provider_scaling_config=None, instance_requirements=None, kms_key_arn=None, permissions_config=None, tags=None, vpc_config=None)

Bases: object

Properties for CfnCapacityProviderPropsMixin.

Parameters:
  • capacity_provider_name (Optional[str]) – 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.

  • capacity_provider_scaling_config (Union[IResolvable, CapacityProviderScalingConfigProperty, Dict[str, Any], None]) – The scaling configuration for the capacity provider.

  • instance_requirements (Union[IResolvable, InstanceRequirementsProperty, Dict[str, Any], None]) – Specifications for the types of EC2 instances that the capacity provider can use.

  • kms_key_arn (Optional[str]) – The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.

  • permissions_config (Union[IResolvable, CapacityProviderPermissionsConfigProperty, Dict[str, Any], None]) – IAM permissions configuration for the capacity provider.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of tags to apply to the capacity provider.

  • vpc_config (Union[IResolvable, CapacityProviderVpcConfigProperty, Dict[str, Any], None]) – VPC configuration for the capacity provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_lambda import mixins as lambda_mixins

cfn_capacity_provider_mixin_props = lambda_mixins.CfnCapacityProviderMixinProps(
    capacity_provider_name="capacityProviderName",
    capacity_provider_scaling_config=lambda_mixins.CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty(
        max_vCpu_count=123,
        scaling_mode="scalingMode",
        scaling_policies=[lambda_mixins.CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty(
            predefined_metric_type="predefinedMetricType",
            target_value=123
        )]
    ),
    instance_requirements=lambda_mixins.CfnCapacityProviderPropsMixin.InstanceRequirementsProperty(
        allowed_instance_types=["allowedInstanceTypes"],
        architectures=["architectures"],
        excluded_instance_types=["excludedInstanceTypes"]
    ),
    kms_key_arn="kmsKeyArn",
    permissions_config=lambda_mixins.CfnCapacityProviderPropsMixin.CapacityProviderPermissionsConfigProperty(
        capacity_provider_operator_role_arn="capacityProviderOperatorRoleArn"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_config=lambda_mixins.CfnCapacityProviderPropsMixin.CapacityProviderVpcConfigProperty(
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"]
    )
)

Attributes

capacity_provider_name

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-capacityprovidername

capacity_provider_scaling_config

The scaling configuration for the capacity provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-capacityproviderscalingconfig

instance_requirements

Specifications for the types of EC2 instances that the capacity provider can use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-instancerequirements

kms_key_arn

The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-kmskeyarn

permissions_config

IAM permissions configuration for the capacity provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-permissionsconfig

tags

A list of tags to apply to the capacity provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-tags

vpc_config

VPC configuration for the capacity provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-vpcconfig