CfnCapacityProviderProps

class aws_cdk.aws_bedrockagentcore.CfnCapacityProviderProps(*, compute_configuration, name, permissions_configuration, description=None, tags=None)

Bases: object

Properties for defining a CfnCapacityProvider.

Parameters:
  • compute_configuration (Union[IResolvable, ComputeConfigurationProperty, Dict[str, Any]]) – The capacity configuration for the capacity provider. Defines the compute resources for this capacity provider.

  • name (str) – The name of the capacity provider.

  • permissions_configuration (Union[IResolvable, PermissionsConfigurationProperty, Dict[str, Any]]) – Configuration for permissions associated with a capacity provider.

  • description (Optional[str]) – An optional description of the capacity provider.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An array of key-value pairs to apply to the capacity provider.

See:

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

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

cfn_capacity_provider_props = bedrockagentcore.CfnCapacityProviderProps(
    compute_configuration=bedrockagentcore.CfnCapacityProvider.ComputeConfigurationProperty(
        ec2_configuration=bedrockagentcore.CfnCapacityProvider.Ec2ConfigurationProperty(
            launch_template_source=bedrockagentcore.CfnCapacityProvider.LaunchTemplateSourceProperty(
                launch_parameters=bedrockagentcore.CfnCapacityProvider.LaunchParametersProperty(
                    instance_requirements=bedrockagentcore.CfnCapacityProvider.InstanceRequirementsProperty(
                        allowed_instance_types=["allowedInstanceTypes"]
                    ),
                    operating_system="operatingSystem",

                    # the properties below are optional
                    capacity_reservation_specification=bedrockagentcore.CfnCapacityProvider.CapacityReservationSpecificationProperty(
                        capacity_reservation_preference="capacityReservationPreference",
                        capacity_reservation_target=bedrockagentcore.CfnCapacityProvider.CapacityReservationTargetProperty(
                            capacity_reservation_id="capacityReservationId",
                            capacity_reservation_resource_group_arn="capacityReservationResourceGroupArn"
                        )
                    ),
                    ephemeral_volumes=[bedrockagentcore.CfnCapacityProvider.EphemeralBlockDeviceMappingProperty(
                        device_name="deviceName",
                        ebs=bedrockagentcore.CfnCapacityProvider.EphemeralEBSVolumeConfigurationProperty(
                            ebs_card_index=123,
                            encrypted=False,
                            iops=123,
                            kms_key_id="kmsKeyId",
                            snapshot_id="snapshotId",
                            throughput=123,
                            volume_initialization_rate=123,
                            volume_size=123,
                            volume_type="volumeType"
                        ),
                        virtual_name="virtualName"
                    )],
                    instance_profile_arn="instanceProfileArn",
                    license_specifications=[bedrockagentcore.CfnCapacityProvider.LicenseSpecificationProperty(
                        license_configuration_arn="licenseConfigurationArn"
                    )],
                    monitoring="monitoring",
                    propagated_tags={
                        "propagated_tags_key": "propagatedTags"
                    },
                    ssh_key_name="sshKeyName"
                )
            ),
            vpc_configuration=bedrockagentcore.CfnCapacityProvider.VpcConfigurationProperty(
                security_groups=["securityGroups"],
                subnets=["subnets"]
            ),

            # the properties below are optional
            lifecycle_configuration=bedrockagentcore.CfnCapacityProvider.InstanceLifecycleConfigurationProperty(
                idle_instance_timeout=123,
                max_lifetime=123
            ),
            root_volume=bedrockagentcore.CfnCapacityProvider.RootVolumeConfigurationProperty(
                encrypted=False,
                free_space_gi_b=123,
                iops=123,
                kms_key_id="kmsKeyId",
                throughput=123,
                volume_type="volumeType"
            ),
            volumes=[bedrockagentcore.CfnCapacityProvider.VolumeConfigurationProperty(
                ebs_configuration=bedrockagentcore.CfnCapacityProvider.EbsVolumeConfigurationProperty(
                    name="name",
                    size_gi_b=123,

                    # the properties below are optional
                    encrypted=False,
                    iops=123,
                    kms_key_id="kmsKeyId",
                    snapshot_id="snapshotId",
                    throughput=123,
                    volume_type="volumeType"
                )
            )]
        )
    ),
    name="name",
    permissions_configuration=bedrockagentcore.CfnCapacityProvider.PermissionsConfigurationProperty(
        capacity_provider_operator_role_arn="capacityProviderOperatorRoleArn"
    ),

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

compute_configuration

The capacity configuration for the capacity provider.

Defines the compute resources for this capacity provider.

See:

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

description

An optional description of the capacity provider.

See:

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

name

The name of the capacity provider.

See:

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

permissions_configuration

Configuration for permissions associated with a capacity provider.

See:

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

tags

An array of key-value pairs to apply to the capacity provider.

See:

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