LaunchTemplate
This class encapsulates and extends the ROS resource type DATASOURCE::ECS::LaunchTemplate
.
Initializers
from ros_cdk_ecs import datasource
datasource.LaunchTemplate(
scope: Construct,
id: str,
launch_template_id: typing.Union[str, IResolvable],
refresh_options: typing.Union[str, IResolvable] = None,
enable_resource_property_constraint: bool = None
)
Name | Type | Description |
---|---|---|
scope |
ros_cdk_core.Construct |
No description. |
id |
str |
No description. |
launch_template_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property launchTemplateId: Template ID. |
refresh_options |
typing.Union[str, ros_cdk_core.IResolvable] |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
enable_resource_property_constraint |
bool |
No description. |
scope
Required
- Type: ros_cdk_core.Construct
id
Required
- Type: str
launch_template_id
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property launchTemplateId: Template ID.
refresh_options
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
enable_resource_property_constraint
Optional
- Type: bool
Methods
Name | Description |
---|---|
to_string |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition |
No description. |
add_count |
No description. |
add_dependency |
No description. |
add_resource_desc |
No description. |
apply_removal_policy |
No description. |
get_att |
No description. |
set_metadata |
No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
Name | Description |
---|---|
is_construct |
Return whether the given object is a Construct. |
is_construct
from ros_cdk_ecs import datasource
datasource.LaunchTemplate.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
Name | Type | Description |
---|---|---|
node |
ros_cdk_core.ConstructNode |
The construct tree node associated with this construct. |
ref |
str |
No description. |
stack |
ros_cdk_core.Stack |
The stack in which this resource is defined. |
resource |
ros_cdk_core.RosResource |
No description. |
attr_auto_release_time |
ros_cdk_core.IResolvable |
Attribute AutoReleaseTime: Automatic release time. |
attr_created_by |
ros_cdk_core.IResolvable |
Attribute CreatedBy: The creator of the launch template. |
attr_create_time |
ros_cdk_core.IResolvable |
Attribute CreateTime: The time when the instance launch template was created. |
attr_data_disk |
ros_cdk_core.IResolvable |
Attribute DataDisk: Data disk information list. |
attr_default_version_number |
ros_cdk_core.IResolvable |
Attribute DefaultVersionNumber: The default version number of the template. |
attr_deletion_protection |
ros_cdk_core.IResolvable |
Attribute DeletionProtection: Instance deletion protection attribute. |
attr_deployment_set_id |
ros_cdk_core.IResolvable |
Attribute DeploymentSetId: The ID of the deployment set. |
attr_description |
ros_cdk_core.IResolvable |
Attribute Description: Instance description. |
attr_host_name |
ros_cdk_core.IResolvable |
Attribute HostName: The hostname of the instance. |
attr_image_id |
ros_cdk_core.IResolvable |
Attribute ImageId: The ID of the image. |
attr_image_owner_alias |
ros_cdk_core.IResolvable |
Attribute ImageOwnerAlias: The source of the image. |
attr_instance_charge_type |
ros_cdk_core.IResolvable |
Attribute InstanceChargeType: The billing method of the instance. |
attr_instance_name |
ros_cdk_core.IResolvable |
Attribute InstanceName: The name of the instance. |
attr_instance_type |
ros_cdk_core.IResolvable |
Attribute InstanceType: The instance type. |
attr_internet_charge_type |
ros_cdk_core.IResolvable |
Attribute InternetChargeType: Network billing method. |
attr_internet_max_bandwidth_in |
ros_cdk_core.IResolvable |
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s. |
attr_internet_max_bandwidth_out |
ros_cdk_core.IResolvable |
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network. |
attr_io_optimized |
ros_cdk_core.IResolvable |
Attribute IoOptimized: Whether to optimize the instance for I/O. |
attr_ipv6_address_count |
ros_cdk_core.IResolvable |
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card. |
attr_key_pair_name |
ros_cdk_core.IResolvable |
Attribute KeyPairName: The name of the key pair. |
attr_latest_version_number |
ros_cdk_core.IResolvable |
Attribute LatestVersionNumber: The latest version number of the template. |
attr_launch_template_id |
ros_cdk_core.IResolvable |
Attribute LaunchTemplateId: The ID of the launch template. |
attr_launch_template_name |
ros_cdk_core.IResolvable |
Attribute LaunchTemplateName: The name of the launch template. |
attr_modified_time |
ros_cdk_core.IResolvable |
Attribute ModifiedTime: The time when the launch template was modified. |
attr_network_interface |
ros_cdk_core.IResolvable |
Attribute NetworkInterface: The elastic network interfaces (ENIs). |
attr_network_type |
ros_cdk_core.IResolvable |
Attribute NetworkType: The network type of the instance. |
attr_password_inherit |
ros_cdk_core.IResolvable |
Attribute PasswordInherit: Whether to use the password preset by the image. |
attr_period |
ros_cdk_core.IResolvable |
Attribute Period: The duration of the purchase of resources, in months. |
attr_private_ip_address |
ros_cdk_core.IResolvable |
Attribute PrivateIpAddress: The private IP address of the instance. |
attr_ram_role_name |
ros_cdk_core.IResolvable |
Attribute RamRoleName: The instance RAM role name. |
attr_resource_group_id |
ros_cdk_core.IResolvable |
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong. |
attr_security_enhancement_strategy |
ros_cdk_core.IResolvable |
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system. |
attr_security_group_ids |
ros_cdk_core.IResolvable |
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance. |
attr_spot_price_limit |
ros_cdk_core.IResolvable |
Attribute SpotPriceLimit: Set the maximum price per hour for the instance. |
attr_spot_strategy |
ros_cdk_core.IResolvable |
Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance. |
attr_system_disk |
ros_cdk_core.IResolvable |
Attribute SystemDisk: System disk configuration. |
attr_tags |
ros_cdk_core.IResolvable |
Attribute Tags: The tags of the launch template. |
attr_template_resource_group_id |
ros_cdk_core.IResolvable |
Attribute TemplateResourceGroupId: Q. |
attr_template_tag |
ros_cdk_core.IResolvable |
Attribute TemplateTag: The tags of the launch template. |
attr_user_data |
ros_cdk_core.IResolvable |
Attribute UserData: The user-defined data of the instance must be encoded in Base64. |
attr_version_description |
ros_cdk_core.IResolvable |
Attribute VersionDescription: Instance launch template version description. |
attr_vpc_id |
ros_cdk_core.IResolvable |
Attribute VpcId: VPC Id. |
attr_v_switch_id |
ros_cdk_core.IResolvable |
Attribute VSwitchId: The ID of the vSwitch. |
attr_zone_id |
ros_cdk_core.IResolvable |
Attribute ZoneId: The ID of the zone to which the instance belongs. |
node
Required
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
ref
Required
ref: str
- Type: str
stack
Required
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resource
Optional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_auto_release_time
Required
attr_auto_release_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute AutoReleaseTime: Automatic release time.
According to the ISO8601 standard, and need to use UTC time. The format is: yyyy-MM-ddTHH:mm:ssZ.
attr_created_by
Required
attr_created_by: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute CreatedBy: The creator of the launch template.
attr_create_time
Required
attr_create_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute CreateTime: The time when the instance launch template was created.
attr_data_disk
Required
attr_data_disk: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DataDisk: Data disk information list.
attr_default_version_number
Required
attr_default_version_number: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DefaultVersionNumber: The default version number of the template.
attr_deletion_protection
Required
attr_deletion_protection: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DeletionProtection: Instance deletion protection attribute.
attr_deployment_set_id
Required
attr_deployment_set_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DeploymentSetId: The ID of the deployment set.
attr_description
Required
attr_description: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Description: Instance description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
attr_host_name
Required
attr_host_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute HostName: The hostname of the instance.
attr_image_id
Required
attr_image_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ImageId: The ID of the image.
attr_image_owner_alias
Required
attr_image_owner_alias: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ImageOwnerAlias: The source of the image.
attr_instance_charge_type
Required
attr_instance_charge_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InstanceChargeType: The billing method of the instance.
attr_instance_name
Required
attr_instance_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InstanceName: The name of the instance.
The length is 2~128 English or Chinese characters. It must start with a large or small letter or Chinese, and cannot start with' http:// 'or' https. It can contain numbers, colons (:), underscores (_), or dashes (-).
attr_instance_type
Required
attr_instance_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InstanceType: The instance type.
attr_internet_charge_type
Required
attr_internet_charge_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InternetChargeType: Network billing method.
attr_internet_max_bandwidth_in
Required
attr_internet_max_bandwidth_in: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.
attr_internet_max_bandwidth_out
Required
attr_internet_max_bandwidth_out: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network.
The unit is Mbit/s. The value range is 0~100.
attr_io_optimized
Required
attr_io_optimized: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute IoOptimized: Whether to optimize the instance for I/O.
attr_ipv6_address_count
Required
attr_ipv6_address_count: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card.
The value range is 1 to 10.
attr_key_pair_name
Required
attr_key_pair_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute KeyPairName: The name of the key pair.
attr_latest_version_number
Required
attr_latest_version_number: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute LatestVersionNumber: The latest version number of the template.
attr_launch_template_id
Required
attr_launch_template_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute LaunchTemplateId: The ID of the launch template.
attr_launch_template_name
Required
attr_launch_template_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute LaunchTemplateName: The name of the launch template.
attr_modified_time
Required
attr_modified_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ModifiedTime: The time when the launch template was modified.
attr_network_interface
Required
attr_network_interface: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute NetworkInterface: The elastic network interfaces (ENIs).
attr_network_type
Required
attr_network_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute NetworkType: The network type of the instance.
attr_password_inherit
Required
attr_password_inherit: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute PasswordInherit: Whether to use the password preset by the image.
attr_period
Required
attr_period: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Period: The duration of the purchase of resources, in months.
When creating an instance, the parameter 'InstanceChargeType' takes effect and is required only when the value of the parameter 'PrePaid' is 'PrePaid. Value range: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, 60.
attr_private_ip_address
Required
attr_private_ip_address: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute PrivateIpAddress: The private IP address of the instance.
attr_ram_role_name
Required
attr_ram_role_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute RamRoleName: The instance RAM role name.
You can use the RAM API ListRoles to query the created instance RAM roles.
attr_resource_group_id
Required
attr_resource_group_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong.
attr_security_enhancement_strategy
Required
attr_security_enhancement_strategy: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.
attr_security_group_ids
Required
attr_security_group_ids: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance.
attr_spot_price_limit
Required
attr_spot_price_limit: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute SpotPriceLimit: Set the maximum price per hour for the instance.
The maximum number of 3 decimal places is supported. The value of the parameter 'SpotStrategy' is 'SpotWithPriceLimit.
attr_spot_strategy
Required
attr_spot_strategy: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance.
This parameter takes effect when the value of the parameter 'InstanceChargeType' is 'PostPaid.
attr_system_disk
Required
attr_system_disk: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute SystemDisk: System disk configuration.
attr_tags
Required
attr_tags: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Tags: The tags of the launch template.
attr_template_resource_group_id
Required
attr_template_resource_group_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute TemplateResourceGroupId: Q.
attr_template_tag
Required
attr_template_tag: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute TemplateTag: The tags of the launch template.
attr_user_data
Required
attr_user_data: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute UserData: The user-defined data of the instance must be encoded in Base64.
The maximum original data is 16KB.
attr_version_description
Required
attr_version_description: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute VersionDescription: Instance launch template version description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
attr_vpc_id
Required
attr_vpc_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute VpcId: VPC Id.
attr_v_switch_id
Required
attr_v_switch_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute VSwitchId: The ID of the vSwitch.
attr_zone_id
Required
attr_zone_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ZoneId: The ID of the zone to which the instance belongs.