Struct aws_sdk_ec2::model::ResponseLaunchTemplateData
source · [−]#[non_exhaustive]pub struct ResponseLaunchTemplateData { /* private fields */ }
Expand description
The information for a launch template.
Implementations
sourceimpl ResponseLaunchTemplateData
impl ResponseLaunchTemplateData
sourcepub fn ebs_optimized(&self) -> Option<bool>
pub fn ebs_optimized(&self) -> Option<bool>
Indicates whether the instance is optimized for Amazon EBS I/O.
sourcepub fn iam_instance_profile(
&self
) -> Option<&LaunchTemplateIamInstanceProfileSpecification>
pub fn iam_instance_profile(
&self
) -> Option<&LaunchTemplateIamInstanceProfileSpecification>
The IAM instance profile.
sourcepub fn block_device_mappings(
&self
) -> Option<&[LaunchTemplateBlockDeviceMapping]>
pub fn block_device_mappings(
&self
) -> Option<&[LaunchTemplateBlockDeviceMapping]>
The block device mappings.
sourcepub fn network_interfaces(
&self
) -> Option<&[LaunchTemplateInstanceNetworkInterfaceSpecification]>
pub fn network_interfaces(
&self
) -> Option<&[LaunchTemplateInstanceNetworkInterfaceSpecification]>
The network interfaces.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
The instance type.
sourcepub fn monitoring(&self) -> Option<&LaunchTemplatesMonitoring>
pub fn monitoring(&self) -> Option<&LaunchTemplatesMonitoring>
The monitoring for the instance.
sourcepub fn placement(&self) -> Option<&LaunchTemplatePlacement>
pub fn placement(&self) -> Option<&LaunchTemplatePlacement>
The placement of the instance.
sourcepub fn ram_disk_id(&self) -> Option<&str>
pub fn ram_disk_id(&self) -> Option<&str>
The ID of the RAM disk, if applicable.
sourcepub fn disable_api_termination(&self) -> Option<bool>
pub fn disable_api_termination(&self) -> Option<bool>
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
sourcepub fn instance_initiated_shutdown_behavior(&self) -> Option<&ShutdownBehavior>
pub fn instance_initiated_shutdown_behavior(&self) -> Option<&ShutdownBehavior>
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
sourcepub fn tag_specifications(&self) -> Option<&[LaunchTemplateTagSpecification]>
pub fn tag_specifications(&self) -> Option<&[LaunchTemplateTagSpecification]>
The tags that are applied to the resources that are created during instance launch.
sourcepub fn elastic_gpu_specifications(
&self
) -> Option<&[ElasticGpuSpecificationResponse]>
pub fn elastic_gpu_specifications(
&self
) -> Option<&[ElasticGpuSpecificationResponse]>
The elastic GPU specification.
sourcepub fn elastic_inference_accelerators(
&self
) -> Option<&[LaunchTemplateElasticInferenceAcceleratorResponse]>
pub fn elastic_inference_accelerators(
&self
) -> Option<&[LaunchTemplateElasticInferenceAcceleratorResponse]>
The elastic inference accelerator for the instance.
sourcepub fn security_group_ids(&self) -> Option<&[String]>
pub fn security_group_ids(&self) -> Option<&[String]>
The security group IDs.
sourcepub fn security_groups(&self) -> Option<&[String]>
pub fn security_groups(&self) -> Option<&[String]>
The security group names.
sourcepub fn instance_market_options(
&self
) -> Option<&LaunchTemplateInstanceMarketOptions>
pub fn instance_market_options(
&self
) -> Option<&LaunchTemplateInstanceMarketOptions>
The market (purchasing) option for the instances.
sourcepub fn credit_specification(&self) -> Option<&CreditSpecification>
pub fn credit_specification(&self) -> Option<&CreditSpecification>
The credit option for CPU usage of the instance.
sourcepub fn cpu_options(&self) -> Option<&LaunchTemplateCpuOptions>
pub fn cpu_options(&self) -> Option<&LaunchTemplateCpuOptions>
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn capacity_reservation_specification(
&self
) -> Option<&LaunchTemplateCapacityReservationSpecificationResponse>
pub fn capacity_reservation_specification(
&self
) -> Option<&LaunchTemplateCapacityReservationSpecificationResponse>
Information about the Capacity Reservation targeting option.
sourcepub fn license_specifications(
&self
) -> Option<&[LaunchTemplateLicenseConfiguration]>
pub fn license_specifications(
&self
) -> Option<&[LaunchTemplateLicenseConfiguration]>
The license configurations.
sourcepub fn hibernation_options(&self) -> Option<&LaunchTemplateHibernationOptions>
pub fn hibernation_options(&self) -> Option<&LaunchTemplateHibernationOptions>
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn metadata_options(&self) -> Option<&LaunchTemplateInstanceMetadataOptions>
pub fn metadata_options(&self) -> Option<&LaunchTemplateInstanceMetadataOptions>
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn enclave_options(&self) -> Option<&LaunchTemplateEnclaveOptions>
pub fn enclave_options(&self) -> Option<&LaunchTemplateEnclaveOptions>
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
sourcepub fn instance_requirements(&self) -> Option<&InstanceRequirements>
pub fn instance_requirements(&self) -> Option<&InstanceRequirements>
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
sourcepub fn private_dns_name_options(
&self
) -> Option<&LaunchTemplatePrivateDnsNameOptions>
pub fn private_dns_name_options(
&self
) -> Option<&LaunchTemplatePrivateDnsNameOptions>
The options for the instance hostname.
sourcepub fn maintenance_options(
&self
) -> Option<&LaunchTemplateInstanceMaintenanceOptions>
pub fn maintenance_options(
&self
) -> Option<&LaunchTemplateInstanceMaintenanceOptions>
The maintenance options for your instance.
sourcepub fn disable_api_stop(&self) -> Option<bool>
pub fn disable_api_stop(&self) -> Option<bool>
Indicates whether the instance is enabled for stop protection. For more information, see Stop Protection.
sourceimpl ResponseLaunchTemplateData
impl ResponseLaunchTemplateData
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseLaunchTemplateData
.
Trait Implementations
sourceimpl Clone for ResponseLaunchTemplateData
impl Clone for ResponseLaunchTemplateData
sourcefn clone(&self) -> ResponseLaunchTemplateData
fn clone(&self) -> ResponseLaunchTemplateData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResponseLaunchTemplateData
impl Debug for ResponseLaunchTemplateData
sourceimpl PartialEq<ResponseLaunchTemplateData> for ResponseLaunchTemplateData
impl PartialEq<ResponseLaunchTemplateData> for ResponseLaunchTemplateData
sourcefn eq(&self, other: &ResponseLaunchTemplateData) -> bool
fn eq(&self, other: &ResponseLaunchTemplateData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResponseLaunchTemplateData) -> bool
fn ne(&self, other: &ResponseLaunchTemplateData) -> bool
This method tests for !=
.
impl StructuralPartialEq for ResponseLaunchTemplateData
Auto Trait Implementations
impl RefUnwindSafe for ResponseLaunchTemplateData
impl Send for ResponseLaunchTemplateData
impl Sync for ResponseLaunchTemplateData
impl Unpin for ResponseLaunchTemplateData
impl UnwindSafe for ResponseLaunchTemplateData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more