Class CfnCapacityProvider.ComputeConfigurationProperty
The capacity configuration for the capacity provider.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.BedrockAgentCore
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCapacityProvider.ComputeConfigurationProperty : CfnCapacityProvider.IComputeConfigurationProperty
Syntax (vb)
Public Class CfnCapacityProvider.ComputeConfigurationProperty Implements CfnCapacityProvider.IComputeConfigurationProperty
Remarks
Defines the compute resources for this capacity provider.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;
var computeConfigurationProperty = new ComputeConfigurationProperty {
Ec2Configuration = new Ec2ConfigurationProperty {
LaunchTemplateSource = new LaunchTemplateSourceProperty {
LaunchParameters = new LaunchParametersProperty {
InstanceRequirements = new InstanceRequirementsProperty {
AllowedInstanceTypes = new [] { "allowedInstanceTypes" }
},
OperatingSystem = "operatingSystem",
// the properties below are optional
CapacityReservationSpecification = new CapacityReservationSpecificationProperty {
CapacityReservationPreference = "capacityReservationPreference",
CapacityReservationTarget = new CapacityReservationTargetProperty {
CapacityReservationId = "capacityReservationId",
CapacityReservationResourceGroupArn = "capacityReservationResourceGroupArn"
}
},
EphemeralVolumes = new [] { new EphemeralBlockDeviceMappingProperty {
DeviceName = "deviceName",
Ebs = new EphemeralEBSVolumeConfigurationProperty {
EbsCardIndex = 123,
Encrypted = false,
Iops = 123,
KmsKeyId = "kmsKeyId",
SnapshotId = "snapshotId",
Throughput = 123,
VolumeInitializationRate = 123,
VolumeSize = 123,
VolumeType = "volumeType"
},
VirtualName = "virtualName"
} },
InstanceProfileArn = "instanceProfileArn",
LicenseSpecifications = new [] { new LicenseSpecificationProperty {
LicenseConfigurationArn = "licenseConfigurationArn"
} },
Monitoring = "monitoring",
PropagatedTags = new Dictionary<string, string> {
{ "propagatedTagsKey", "propagatedTags" }
},
SshKeyName = "sshKeyName"
}
},
VpcConfiguration = new VpcConfigurationProperty {
SecurityGroups = new [] { "securityGroups" },
Subnets = new [] { "subnets" }
},
// the properties below are optional
LifecycleConfiguration = new InstanceLifecycleConfigurationProperty {
IdleInstanceTimeout = 123,
MaxLifetime = 123
},
RootVolume = new RootVolumeConfigurationProperty {
Encrypted = false,
FreeSpaceGiB = 123,
Iops = 123,
KmsKeyId = "kmsKeyId",
Throughput = 123,
VolumeType = "volumeType"
},
Volumes = new [] { new VolumeConfigurationProperty {
EbsConfiguration = new EbsVolumeConfigurationProperty {
Name = "name",
SizeGiB = 123,
// the properties below are optional
Encrypted = false,
Iops = 123,
KmsKeyId = "kmsKeyId",
SnapshotId = "snapshotId",
Throughput = 123,
VolumeType = "volumeType"
}
} }
}
};
Synopsis
Constructors
| ComputeConfigurationProperty() | The capacity configuration for the capacity provider. |
Properties
| Ec2Configuration | Configuration for EC2-based capacity. |
Constructors
ComputeConfigurationProperty()
The capacity configuration for the capacity provider.
public ComputeConfigurationProperty()
Remarks
Defines the compute resources for this capacity provider.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;
var computeConfigurationProperty = new ComputeConfigurationProperty {
Ec2Configuration = new Ec2ConfigurationProperty {
LaunchTemplateSource = new LaunchTemplateSourceProperty {
LaunchParameters = new LaunchParametersProperty {
InstanceRequirements = new InstanceRequirementsProperty {
AllowedInstanceTypes = new [] { "allowedInstanceTypes" }
},
OperatingSystem = "operatingSystem",
// the properties below are optional
CapacityReservationSpecification = new CapacityReservationSpecificationProperty {
CapacityReservationPreference = "capacityReservationPreference",
CapacityReservationTarget = new CapacityReservationTargetProperty {
CapacityReservationId = "capacityReservationId",
CapacityReservationResourceGroupArn = "capacityReservationResourceGroupArn"
}
},
EphemeralVolumes = new [] { new EphemeralBlockDeviceMappingProperty {
DeviceName = "deviceName",
Ebs = new EphemeralEBSVolumeConfigurationProperty {
EbsCardIndex = 123,
Encrypted = false,
Iops = 123,
KmsKeyId = "kmsKeyId",
SnapshotId = "snapshotId",
Throughput = 123,
VolumeInitializationRate = 123,
VolumeSize = 123,
VolumeType = "volumeType"
},
VirtualName = "virtualName"
} },
InstanceProfileArn = "instanceProfileArn",
LicenseSpecifications = new [] { new LicenseSpecificationProperty {
LicenseConfigurationArn = "licenseConfigurationArn"
} },
Monitoring = "monitoring",
PropagatedTags = new Dictionary<string, string> {
{ "propagatedTagsKey", "propagatedTags" }
},
SshKeyName = "sshKeyName"
}
},
VpcConfiguration = new VpcConfigurationProperty {
SecurityGroups = new [] { "securityGroups" },
Subnets = new [] { "subnets" }
},
// the properties below are optional
LifecycleConfiguration = new InstanceLifecycleConfigurationProperty {
IdleInstanceTimeout = 123,
MaxLifetime = 123
},
RootVolume = new RootVolumeConfigurationProperty {
Encrypted = false,
FreeSpaceGiB = 123,
Iops = 123,
KmsKeyId = "kmsKeyId",
Throughput = 123,
VolumeType = "volumeType"
},
Volumes = new [] { new VolumeConfigurationProperty {
EbsConfiguration = new EbsVolumeConfigurationProperty {
Name = "name",
SizeGiB = 123,
// the properties below are optional
Encrypted = false,
Iops = 123,
KmsKeyId = "kmsKeyId",
SnapshotId = "snapshotId",
Throughput = 123,
VolumeType = "volumeType"
}
} }
}
};
Properties
Ec2Configuration
Configuration for EC2-based capacity.
public object Ec2Configuration { get; set; }