interface CfnCapacityProviderProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnCapacityProviderProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnCapacityProviderProps |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnCapacityProviderProps |
Python | aws_cdk.aws_bedrockagentcore.CfnCapacityProviderProps |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnCapacityProviderProps |
Properties for defining a CfnCapacityProvider.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const cfnCapacityProviderProps: bedrockagentcore.CfnCapacityProviderProps = {
computeConfiguration: {
ec2Configuration: {
launchTemplateSource: {
launchParameters: {
instanceRequirements: {
allowedInstanceTypes: ['allowedInstanceTypes'],
},
operatingSystem: 'operatingSystem',
// the properties below are optional
capacityReservationSpecification: {
capacityReservationPreference: 'capacityReservationPreference',
capacityReservationTarget: {
capacityReservationId: 'capacityReservationId',
capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
},
},
ephemeralVolumes: [{
deviceName: 'deviceName',
ebs: {
ebsCardIndex: 123,
encrypted: false,
iops: 123,
kmsKeyId: 'kmsKeyId',
snapshotId: 'snapshotId',
throughput: 123,
volumeInitializationRate: 123,
volumeSize: 123,
volumeType: 'volumeType',
},
virtualName: 'virtualName',
}],
instanceProfileArn: 'instanceProfileArn',
licenseSpecifications: [{
licenseConfigurationArn: 'licenseConfigurationArn',
}],
monitoring: 'monitoring',
propagatedTags: {
propagatedTagsKey: 'propagatedTags',
},
sshKeyName: 'sshKeyName',
},
},
vpcConfiguration: {
securityGroups: ['securityGroups'],
subnets: ['subnets'],
},
// the properties below are optional
lifecycleConfiguration: {
idleInstanceTimeout: 123,
maxLifetime: 123,
},
rootVolume: {
encrypted: false,
freeSpaceGiB: 123,
iops: 123,
kmsKeyId: 'kmsKeyId',
throughput: 123,
volumeType: 'volumeType',
},
volumes: [{
ebsConfiguration: {
name: 'name',
sizeGiB: 123,
// the properties below are optional
encrypted: false,
iops: 123,
kmsKeyId: 'kmsKeyId',
snapshotId: 'snapshotId',
throughput: 123,
volumeType: 'volumeType',
},
}],
},
},
name: 'name',
permissionsConfiguration: {
capacityProviderOperatorRoleArn: 'capacityProviderOperatorRoleArn',
},
// the properties below are optional
description: 'description',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| compute | IResolvable | Compute | The capacity configuration for the capacity provider. |
| name | string | The name of the capacity provider. |
| permissions | IResolvable | Permissions | Configuration for permissions associated with a capacity provider. |
| description? | string | An optional description of the capacity provider. |
| tags? | Cfn[] | An array of key-value pairs to apply to the capacity provider. |
computeConfiguration
Type:
IResolvable | Compute
The capacity configuration for the capacity provider.
Defines the compute resources for this capacity provider.
name
Type:
string
The name of the capacity provider.
permissionsConfiguration
Type:
IResolvable | Permissions
Configuration for permissions associated with a capacity provider.
description?
Type:
string
(optional)
An optional description of the capacity provider.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs to apply to the capacity provider.

.NET
Go
Java
Python
TypeScript