Class CfnCapacityProvider.LaunchParametersProperty
Parameters for launching EC2 instances.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.BedrockAgentCore
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCapacityProvider.LaunchParametersProperty : CfnCapacityProvider.ILaunchParametersProperty
Syntax (vb)
Public Class CfnCapacityProvider.LaunchParametersProperty Implements CfnCapacityProvider.ILaunchParametersProperty
Remarks
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 launchParametersProperty = 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"
};
Synopsis
Constructors
| LaunchParametersProperty() | Parameters for launching EC2 instances. |
Properties
| CapacityReservationSpecification | The Capacity Reservation targeting option. |
| EphemeralVolumes | The block device mapping for ephemeral (instance store) volumes. |
| InstanceProfileArn | The ARN of the IAM instance profile to associate with launched instances. |
| InstanceRequirements | Requirements for EC2 instance types. |
| LicenseSpecifications | The license configurations. |
| Monitoring | The monitoring level for the instance. |
| OperatingSystem | The operating system and CPU architecture for the instances. |
| PropagatedTags | Tags to apply to all EC2 resources (instances, volumes, and network interfaces) created by this capacity provider. |
| SshKeyName | The name of the SSH key pair to configure on instances for SSH connectivity. |
Constructors
LaunchParametersProperty()
Parameters for launching EC2 instances.
public LaunchParametersProperty()
Remarks
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 launchParametersProperty = 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"
};
Properties
CapacityReservationSpecification
The Capacity Reservation targeting option.
public object? CapacityReservationSpecification { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnCapacityProvider.ICapacityReservationSpecificationProperty
EphemeralVolumes
The block device mapping for ephemeral (instance store) volumes.
public object? EphemeralVolumes { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnCapacityProvider.IEphemeralBlockDeviceMappingProperty)[]
InstanceProfileArn
The ARN of the IAM instance profile to associate with launched instances.
public string? InstanceProfileArn { get; set; }
Property Value
Remarks
InstanceRequirements
Requirements for EC2 instance types.
public object InstanceRequirements { get; set; }
Property Value
Remarks
LicenseSpecifications
The license configurations.
public object? LicenseSpecifications { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnCapacityProvider.ILicenseSpecificationProperty)[]
Monitoring
The monitoring level for the instance.
public string? Monitoring { get; set; }
Property Value
Remarks
OperatingSystem
The operating system and CPU architecture for the instances.
public string OperatingSystem { get; set; }
Property Value
Remarks
PropagatedTags
Tags to apply to all EC2 resources (instances, volumes, and network interfaces) created by this capacity provider.
public object? PropagatedTags { get; set; }
Property Value
Remarks
Type union: either IResolvable or Dictionary<string, string>
SshKeyName
The name of the SSH key pair to configure on instances for SSH connectivity.
public string? SshKeyName { get; set; }