#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Instance
Implementations
sourceimpl Builder
impl Builder
sourcepub fn agent_version(self, input: impl Into<String>) -> Self
pub fn agent_version(self, input: impl Into<String>) -> Self
The agent version. This parameter is set to INHERIT
if the instance inherits the default stack setting or to a a version number for a fixed agent version.
sourcepub fn set_agent_version(self, input: Option<String>) -> Self
pub fn set_agent_version(self, input: Option<String>) -> Self
The agent version. This parameter is set to INHERIT
if the instance inherits the default stack setting or to a a version number for a fixed agent version.
sourcepub fn ami_id(self, input: impl Into<String>) -> Self
pub fn ami_id(self, input: impl Into<String>) -> Self
A custom AMI ID to be used to create the instance. For more information, see Instances
sourcepub fn set_ami_id(self, input: Option<String>) -> Self
pub fn set_ami_id(self, input: Option<String>) -> Self
A custom AMI ID to be used to create the instance. For more information, see Instances
sourcepub fn architecture(self, input: Architecture) -> Self
pub fn architecture(self, input: Architecture) -> Self
The instance architecture: "i386" or "x86_64".
sourcepub fn set_architecture(self, input: Option<Architecture>) -> Self
pub fn set_architecture(self, input: Option<Architecture>) -> Self
The instance architecture: "i386" or "x86_64".
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The instance's Amazon Resource Number (ARN).
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The instance's Amazon Resource Number (ARN).
sourcepub fn auto_scaling_type(self, input: AutoScalingType) -> Self
pub fn auto_scaling_type(self, input: AutoScalingType) -> Self
For load-based or time-based instances, the type.
sourcepub fn set_auto_scaling_type(self, input: Option<AutoScalingType>) -> Self
pub fn set_auto_scaling_type(self, input: Option<AutoScalingType>) -> Self
For load-based or time-based instances, the type.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The instance Availability Zone. For more information, see Regions and Endpoints.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The instance Availability Zone. For more information, see Regions and Endpoints.
sourcepub fn block_device_mappings(self, input: BlockDeviceMapping) -> Self
pub fn block_device_mappings(self, input: BlockDeviceMapping) -> Self
Appends an item to block_device_mappings
.
To override the contents of this collection use set_block_device_mappings
.
An array of BlockDeviceMapping
objects that specify the instance's block device mappings.
sourcepub fn set_block_device_mappings(
self,
input: Option<Vec<BlockDeviceMapping>>
) -> Self
pub fn set_block_device_mappings(
self,
input: Option<Vec<BlockDeviceMapping>>
) -> Self
An array of BlockDeviceMapping
objects that specify the instance's block device mappings.
sourcepub fn created_at(self, input: impl Into<String>) -> Self
pub fn created_at(self, input: impl Into<String>) -> Self
The time that the instance was created.
sourcepub fn set_created_at(self, input: Option<String>) -> Self
pub fn set_created_at(self, input: Option<String>) -> Self
The time that the instance was created.
sourcepub fn ebs_optimized(self, input: bool) -> Self
pub fn ebs_optimized(self, input: bool) -> Self
Whether this is an Amazon EBS-optimized instance.
sourcepub fn set_ebs_optimized(self, input: Option<bool>) -> Self
pub fn set_ebs_optimized(self, input: Option<bool>) -> Self
Whether this is an Amazon EBS-optimized instance.
sourcepub fn ec2_instance_id(self, input: impl Into<String>) -> Self
pub fn ec2_instance_id(self, input: impl Into<String>) -> Self
The ID of the associated Amazon EC2 instance.
sourcepub fn set_ec2_instance_id(self, input: Option<String>) -> Self
pub fn set_ec2_instance_id(self, input: Option<String>) -> Self
The ID of the associated Amazon EC2 instance.
sourcepub fn ecs_cluster_arn(self, input: impl Into<String>) -> Self
pub fn ecs_cluster_arn(self, input: impl Into<String>) -> Self
For container instances, the Amazon ECS cluster's ARN.
sourcepub fn set_ecs_cluster_arn(self, input: Option<String>) -> Self
pub fn set_ecs_cluster_arn(self, input: Option<String>) -> Self
For container instances, the Amazon ECS cluster's ARN.
sourcepub fn ecs_container_instance_arn(self, input: impl Into<String>) -> Self
pub fn ecs_container_instance_arn(self, input: impl Into<String>) -> Self
For container instances, the instance's ARN.
sourcepub fn set_ecs_container_instance_arn(self, input: Option<String>) -> Self
pub fn set_ecs_container_instance_arn(self, input: Option<String>) -> Self
For container instances, the instance's ARN.
sourcepub fn elastic_ip(self, input: impl Into<String>) -> Self
pub fn elastic_ip(self, input: impl Into<String>) -> Self
The instance Elastic IP address .
sourcepub fn set_elastic_ip(self, input: Option<String>) -> Self
pub fn set_elastic_ip(self, input: Option<String>) -> Self
The instance Elastic IP address .
sourcepub fn set_hostname(self, input: Option<String>) -> Self
pub fn set_hostname(self, input: Option<String>) -> Self
The instance host name.
sourcepub fn infrastructure_class(self, input: impl Into<String>) -> Self
pub fn infrastructure_class(self, input: impl Into<String>) -> Self
For registered instances, the infrastructure class: ec2
or on-premises
.
sourcepub fn set_infrastructure_class(self, input: Option<String>) -> Self
pub fn set_infrastructure_class(self, input: Option<String>) -> Self
For registered instances, the infrastructure class: ec2
or on-premises
.
sourcepub fn install_updates_on_boot(self, input: bool) -> Self
pub fn install_updates_on_boot(self, input: bool) -> Self
Whether to install operating system and package updates when the instance boots. The default value is true
. If this value is set to false
, you must then update your instances manually by using CreateDeployment
to run the update_dependencies
stack command or by manually running yum
(Amazon Linux) or apt-get
(Ubuntu) on the instances.
We strongly recommend using the default value of true
, to ensure that your instances have the latest security updates.
sourcepub fn set_install_updates_on_boot(self, input: Option<bool>) -> Self
pub fn set_install_updates_on_boot(self, input: Option<bool>) -> Self
Whether to install operating system and package updates when the instance boots. The default value is true
. If this value is set to false
, you must then update your instances manually by using CreateDeployment
to run the update_dependencies
stack command or by manually running yum
(Amazon Linux) or apt-get
(Ubuntu) on the instances.
We strongly recommend using the default value of true
, to ensure that your instances have the latest security updates.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The instance ID.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The instance ID.
sourcepub fn instance_profile_arn(self, input: impl Into<String>) -> Self
pub fn instance_profile_arn(self, input: impl Into<String>) -> Self
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
sourcepub fn set_instance_profile_arn(self, input: Option<String>) -> Self
pub fn set_instance_profile_arn(self, input: Option<String>) -> Self
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type, such as t2.micro
.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type, such as t2.micro
.
sourcepub fn last_service_error_id(self, input: impl Into<String>) -> Self
pub fn last_service_error_id(self, input: impl Into<String>) -> Self
The ID of the last service error. For more information, call DescribeServiceErrors
.
sourcepub fn set_last_service_error_id(self, input: Option<String>) -> Self
pub fn set_last_service_error_id(self, input: Option<String>) -> Self
The ID of the last service error. For more information, call DescribeServiceErrors
.
sourcepub fn layer_ids(self, input: impl Into<String>) -> Self
pub fn layer_ids(self, input: impl Into<String>) -> Self
Appends an item to layer_ids
.
To override the contents of this collection use set_layer_ids
.
An array containing the instance layer IDs.
sourcepub fn set_layer_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_layer_ids(self, input: Option<Vec<String>>) -> Self
An array containing the instance layer IDs.
sourcepub fn set_platform(self, input: Option<String>) -> Self
pub fn set_platform(self, input: Option<String>) -> Self
The instance's platform.
sourcepub fn private_dns(self, input: impl Into<String>) -> Self
pub fn private_dns(self, input: impl Into<String>) -> Self
The instance's private DNS name.
sourcepub fn set_private_dns(self, input: Option<String>) -> Self
pub fn set_private_dns(self, input: Option<String>) -> Self
The instance's private DNS name.
sourcepub fn private_ip(self, input: impl Into<String>) -> Self
pub fn private_ip(self, input: impl Into<String>) -> Self
The instance's private IP address.
sourcepub fn set_private_ip(self, input: Option<String>) -> Self
pub fn set_private_ip(self, input: Option<String>) -> Self
The instance's private IP address.
sourcepub fn public_dns(self, input: impl Into<String>) -> Self
pub fn public_dns(self, input: impl Into<String>) -> Self
The instance public DNS name.
sourcepub fn set_public_dns(self, input: Option<String>) -> Self
pub fn set_public_dns(self, input: Option<String>) -> Self
The instance public DNS name.
sourcepub fn set_public_ip(self, input: Option<String>) -> Self
pub fn set_public_ip(self, input: Option<String>) -> Self
The instance public IP address.
sourcepub fn registered_by(self, input: impl Into<String>) -> Self
pub fn registered_by(self, input: impl Into<String>) -> Self
For registered instances, who performed the registration.
sourcepub fn set_registered_by(self, input: Option<String>) -> Self
pub fn set_registered_by(self, input: Option<String>) -> Self
For registered instances, who performed the registration.
sourcepub fn reported_agent_version(self, input: impl Into<String>) -> Self
pub fn reported_agent_version(self, input: impl Into<String>) -> Self
The instance's reported AWS OpsWorks Stacks agent version.
sourcepub fn set_reported_agent_version(self, input: Option<String>) -> Self
pub fn set_reported_agent_version(self, input: Option<String>) -> Self
The instance's reported AWS OpsWorks Stacks agent version.
sourcepub fn reported_os(self, input: ReportedOs) -> Self
pub fn reported_os(self, input: ReportedOs) -> Self
For registered instances, the reported operating system.
sourcepub fn set_reported_os(self, input: Option<ReportedOs>) -> Self
pub fn set_reported_os(self, input: Option<ReportedOs>) -> Self
For registered instances, the reported operating system.
sourcepub fn root_device_type(self, input: RootDeviceType) -> Self
pub fn root_device_type(self, input: RootDeviceType) -> Self
The instance's root device type. For more information, see Storage for the Root Device.
sourcepub fn set_root_device_type(self, input: Option<RootDeviceType>) -> Self
pub fn set_root_device_type(self, input: Option<RootDeviceType>) -> Self
The instance's root device type. For more information, see Storage for the Root Device.
sourcepub fn root_device_volume_id(self, input: impl Into<String>) -> Self
pub fn root_device_volume_id(self, input: impl Into<String>) -> Self
The root device volume ID.
sourcepub fn set_root_device_volume_id(self, input: Option<String>) -> Self
pub fn set_root_device_volume_id(self, input: Option<String>) -> Self
The root device volume ID.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
An array containing the instance security group IDs.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
An array containing the instance security group IDs.
sourcepub fn ssh_host_dsa_key_fingerprint(self, input: impl Into<String>) -> Self
pub fn ssh_host_dsa_key_fingerprint(self, input: impl Into<String>) -> Self
The SSH key's Deep Security Agent (DSA) fingerprint.
sourcepub fn set_ssh_host_dsa_key_fingerprint(self, input: Option<String>) -> Self
pub fn set_ssh_host_dsa_key_fingerprint(self, input: Option<String>) -> Self
The SSH key's Deep Security Agent (DSA) fingerprint.
sourcepub fn ssh_host_rsa_key_fingerprint(self, input: impl Into<String>) -> Self
pub fn ssh_host_rsa_key_fingerprint(self, input: impl Into<String>) -> Self
The SSH key's RSA fingerprint.
sourcepub fn set_ssh_host_rsa_key_fingerprint(self, input: Option<String>) -> Self
pub fn set_ssh_host_rsa_key_fingerprint(self, input: Option<String>) -> Self
The SSH key's RSA fingerprint.
sourcepub fn ssh_key_name(self, input: impl Into<String>) -> Self
pub fn ssh_key_name(self, input: impl Into<String>) -> Self
The instance's Amazon EC2 key-pair name.
sourcepub fn set_ssh_key_name(self, input: Option<String>) -> Self
pub fn set_ssh_key_name(self, input: Option<String>) -> Self
The instance's Amazon EC2 key-pair name.
sourcepub fn set_stack_id(self, input: Option<String>) -> Self
pub fn set_stack_id(self, input: Option<String>) -> Self
The stack ID.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The instance status:
-
booting
-
connection_lost
-
online
-
pending
-
rebooting
-
requested
-
running_setup
-
setup_failed
-
shutting_down
-
start_failed
-
stop_failed
-
stopped
-
stopping
-
terminated
-
terminating
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The instance status:
-
booting
-
connection_lost
-
online
-
pending
-
rebooting
-
requested
-
running_setup
-
setup_failed
-
shutting_down
-
start_failed
-
stop_failed
-
stopped
-
stopping
-
terminated
-
terminating
sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The instance's subnet ID; applicable only if the stack is running in a VPC.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The instance's subnet ID; applicable only if the stack is running in a VPC.
sourcepub fn tenancy(self, input: impl Into<String>) -> Self
pub fn tenancy(self, input: impl Into<String>) -> Self
The instance's tenancy option, such as dedicated
or host
.
sourcepub fn set_tenancy(self, input: Option<String>) -> Self
pub fn set_tenancy(self, input: Option<String>) -> Self
The instance's tenancy option, such as dedicated
or host
.
sourcepub fn virtualization_type(self, input: VirtualizationType) -> Self
pub fn virtualization_type(self, input: VirtualizationType) -> Self
The instance's virtualization type: paravirtual
or hvm
.
sourcepub fn set_virtualization_type(self, input: Option<VirtualizationType>) -> Self
pub fn set_virtualization_type(self, input: Option<VirtualizationType>) -> Self
The instance's virtualization type: paravirtual
or hvm
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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