Struct aws_sdk_opsworks::types::builders::InstanceBuilder

source ·
#[non_exhaustive]
pub struct InstanceBuilder { /* private fields */ }
Expand description

A builder for Instance.

Implementations§

source§

impl InstanceBuilder

source

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.

source

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.

source

pub fn get_agent_version(&self) -> &Option<String>

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.

source

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

source

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

source

pub fn get_ami_id(&self) -> &Option<String>

A custom AMI ID to be used to create the instance. For more information, see Instances

source

pub fn architecture(self, input: Architecture) -> Self

The instance architecture: "i386" or "x86_64".

source

pub fn set_architecture(self, input: Option<Architecture>) -> Self

The instance architecture: "i386" or "x86_64".

source

pub fn get_architecture(&self) -> &Option<Architecture>

The instance architecture: "i386" or "x86_64".

source

pub fn arn(self, input: impl Into<String>) -> Self

The instance's Amazon Resource Number (ARN).

source

pub fn set_arn(self, input: Option<String>) -> Self

The instance's Amazon Resource Number (ARN).

source

pub fn get_arn(&self) -> &Option<String>

The instance's Amazon Resource Number (ARN).

source

pub fn auto_scaling_type(self, input: AutoScalingType) -> Self

For load-based or time-based instances, the type.

source

pub fn set_auto_scaling_type(self, input: Option<AutoScalingType>) -> Self

For load-based or time-based instances, the type.

source

pub fn get_auto_scaling_type(&self) -> &Option<AutoScalingType>

For load-based or time-based instances, the type.

source

pub fn availability_zone(self, input: impl Into<String>) -> Self

The instance Availability Zone. For more information, see Regions and Endpoints.

source

pub fn set_availability_zone(self, input: Option<String>) -> Self

The instance Availability Zone. For more information, see Regions and Endpoints.

source

pub fn get_availability_zone(&self) -> &Option<String>

The instance Availability Zone. For more information, see Regions and Endpoints.

source

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.

source

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.

source

pub fn get_block_device_mappings(&self) -> &Option<Vec<BlockDeviceMapping>>

An array of BlockDeviceMapping objects that specify the instance's block device mappings.

source

pub fn created_at(self, input: impl Into<String>) -> Self

The time that the instance was created.

source

pub fn set_created_at(self, input: Option<String>) -> Self

The time that the instance was created.

source

pub fn get_created_at(&self) -> &Option<String>

The time that the instance was created.

source

pub fn ebs_optimized(self, input: bool) -> Self

Whether this is an Amazon EBS-optimized instance.

source

pub fn set_ebs_optimized(self, input: Option<bool>) -> Self

Whether this is an Amazon EBS-optimized instance.

source

pub fn get_ebs_optimized(&self) -> &Option<bool>

Whether this is an Amazon EBS-optimized instance.

source

pub fn ec2_instance_id(self, input: impl Into<String>) -> Self

The ID of the associated Amazon EC2 instance.

source

pub fn set_ec2_instance_id(self, input: Option<String>) -> Self

The ID of the associated Amazon EC2 instance.

source

pub fn get_ec2_instance_id(&self) -> &Option<String>

The ID of the associated Amazon EC2 instance.

source

pub fn ecs_cluster_arn(self, input: impl Into<String>) -> Self

For container instances, the Amazon ECS cluster's ARN.

source

pub fn set_ecs_cluster_arn(self, input: Option<String>) -> Self

For container instances, the Amazon ECS cluster's ARN.

source

pub fn get_ecs_cluster_arn(&self) -> &Option<String>

For container instances, the Amazon ECS cluster's ARN.

source

pub fn ecs_container_instance_arn(self, input: impl Into<String>) -> Self

For container instances, the instance's ARN.

source

pub fn set_ecs_container_instance_arn(self, input: Option<String>) -> Self

For container instances, the instance's ARN.

source

pub fn get_ecs_container_instance_arn(&self) -> &Option<String>

For container instances, the instance's ARN.

source

pub fn elastic_ip(self, input: impl Into<String>) -> Self

The instance Elastic IP address.

source

pub fn set_elastic_ip(self, input: Option<String>) -> Self

The instance Elastic IP address.

source

pub fn get_elastic_ip(&self) -> &Option<String>

The instance Elastic IP address.

source

pub fn hostname(self, input: impl Into<String>) -> Self

The instance host name. The following are character limits for instance host names.

  • Linux-based instances: 63 characters

  • Windows-based instances: 15 characters

source

pub fn set_hostname(self, input: Option<String>) -> Self

The instance host name. The following are character limits for instance host names.

  • Linux-based instances: 63 characters

  • Windows-based instances: 15 characters

source

pub fn get_hostname(&self) -> &Option<String>

The instance host name. The following are character limits for instance host names.

  • Linux-based instances: 63 characters

  • Windows-based instances: 15 characters

source

pub fn infrastructure_class(self, input: impl Into<String>) -> Self

For registered instances, the infrastructure class: ec2 or on-premises.

source

pub fn set_infrastructure_class(self, input: Option<String>) -> Self

For registered instances, the infrastructure class: ec2 or on-premises.

source

pub fn get_infrastructure_class(&self) -> &Option<String>

For registered instances, the infrastructure class: ec2 or on-premises.

source

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 update 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.

source

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 update 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.

source

pub fn get_install_updates_on_boot(&self) -> &Option<bool>

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 update 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.

source

pub fn instance_id(self, input: impl Into<String>) -> Self

The instance ID.

source

pub fn set_instance_id(self, input: Option<String>) -> Self

The instance ID.

source

pub fn get_instance_id(&self) -> &Option<String>

The instance ID.

source

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.

source

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.

source

pub fn get_instance_profile_arn(&self) -> &Option<String>

The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.

source

pub fn instance_type(self, input: impl Into<String>) -> Self

The instance type, such as t2.micro.

source

pub fn set_instance_type(self, input: Option<String>) -> Self

The instance type, such as t2.micro.

source

pub fn get_instance_type(&self) -> &Option<String>

The instance type, such as t2.micro.

source

pub fn last_service_error_id(self, input: impl Into<String>) -> Self

The ID of the last service error. For more information, call DescribeServiceErrors.

source

pub fn set_last_service_error_id(self, input: Option<String>) -> Self

The ID of the last service error. For more information, call DescribeServiceErrors.

source

pub fn get_last_service_error_id(&self) -> &Option<String>

The ID of the last service error. For more information, call DescribeServiceErrors.

source

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.

source

pub fn set_layer_ids(self, input: Option<Vec<String>>) -> Self

An array containing the instance layer IDs.

source

pub fn get_layer_ids(&self) -> &Option<Vec<String>>

An array containing the instance layer IDs.

source

pub fn os(self, input: impl Into<String>) -> Self

The instance's operating system.

source

pub fn set_os(self, input: Option<String>) -> Self

The instance's operating system.

source

pub fn get_os(&self) -> &Option<String>

The instance's operating system.

source

pub fn platform(self, input: impl Into<String>) -> Self

The instance's platform.

source

pub fn set_platform(self, input: Option<String>) -> Self

The instance's platform.

source

pub fn get_platform(&self) -> &Option<String>

The instance's platform.

source

pub fn private_dns(self, input: impl Into<String>) -> Self

The instance's private DNS name.

source

pub fn set_private_dns(self, input: Option<String>) -> Self

The instance's private DNS name.

source

pub fn get_private_dns(&self) -> &Option<String>

The instance's private DNS name.

source

pub fn private_ip(self, input: impl Into<String>) -> Self

The instance's private IP address.

source

pub fn set_private_ip(self, input: Option<String>) -> Self

The instance's private IP address.

source

pub fn get_private_ip(&self) -> &Option<String>

The instance's private IP address.

source

pub fn public_dns(self, input: impl Into<String>) -> Self

The instance public DNS name.

source

pub fn set_public_dns(self, input: Option<String>) -> Self

The instance public DNS name.

source

pub fn get_public_dns(&self) -> &Option<String>

The instance public DNS name.

source

pub fn public_ip(self, input: impl Into<String>) -> Self

The instance public IP address.

source

pub fn set_public_ip(self, input: Option<String>) -> Self

The instance public IP address.

source

pub fn get_public_ip(&self) -> &Option<String>

The instance public IP address.

source

pub fn registered_by(self, input: impl Into<String>) -> Self

For registered instances, who performed the registration.

source

pub fn set_registered_by(self, input: Option<String>) -> Self

For registered instances, who performed the registration.

source

pub fn get_registered_by(&self) -> &Option<String>

For registered instances, who performed the registration.

source

pub fn reported_agent_version(self, input: impl Into<String>) -> Self

The instance's reported OpsWorks Stacks agent version.

source

pub fn set_reported_agent_version(self, input: Option<String>) -> Self

The instance's reported OpsWorks Stacks agent version.

source

pub fn get_reported_agent_version(&self) -> &Option<String>

The instance's reported OpsWorks Stacks agent version.

source

pub fn reported_os(self, input: ReportedOs) -> Self

For registered instances, the reported operating system.

source

pub fn set_reported_os(self, input: Option<ReportedOs>) -> Self

For registered instances, the reported operating system.

source

pub fn get_reported_os(&self) -> &Option<ReportedOs>

For registered instances, the reported operating system.

source

pub fn root_device_type(self, input: RootDeviceType) -> Self

The instance's root device type. For more information, see Storage for the Root Device.

source

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.

source

pub fn get_root_device_type(&self) -> &Option<RootDeviceType>

The instance's root device type. For more information, see Storage for the Root Device.

source

pub fn root_device_volume_id(self, input: impl Into<String>) -> Self

The root device volume ID.

source

pub fn set_root_device_volume_id(self, input: Option<String>) -> Self

The root device volume ID.

source

pub fn get_root_device_volume_id(&self) -> &Option<String>

The root device volume ID.

source

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.

source

pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self

An array containing the instance security group IDs.

source

pub fn get_security_group_ids(&self) -> &Option<Vec<String>>

An array containing the instance security group IDs.

source

pub fn ssh_host_dsa_key_fingerprint(self, input: impl Into<String>) -> Self

The SSH key's Deep Security Agent (DSA) fingerprint.

source

pub fn set_ssh_host_dsa_key_fingerprint(self, input: Option<String>) -> Self

The SSH key's Deep Security Agent (DSA) fingerprint.

source

pub fn get_ssh_host_dsa_key_fingerprint(&self) -> &Option<String>

The SSH key's Deep Security Agent (DSA) fingerprint.

source

pub fn ssh_host_rsa_key_fingerprint(self, input: impl Into<String>) -> Self

The SSH key's RSA fingerprint.

source

pub fn set_ssh_host_rsa_key_fingerprint(self, input: Option<String>) -> Self

The SSH key's RSA fingerprint.

source

pub fn get_ssh_host_rsa_key_fingerprint(&self) -> &Option<String>

The SSH key's RSA fingerprint.

source

pub fn ssh_key_name(self, input: impl Into<String>) -> Self

The instance's Amazon EC2 key-pair name.

source

pub fn set_ssh_key_name(self, input: Option<String>) -> Self

The instance's Amazon EC2 key-pair name.

source

pub fn get_ssh_key_name(&self) -> &Option<String>

The instance's Amazon EC2 key-pair name.

source

pub fn stack_id(self, input: impl Into<String>) -> Self

The stack ID.

source

pub fn set_stack_id(self, input: Option<String>) -> Self

The stack ID.

source

pub fn get_stack_id(&self) -> &Option<String>

The stack ID.

source

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

source

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

source

pub fn get_status(&self) -> &Option<String>

The instance status:

  • booting

  • connection_lost

  • online

  • pending

  • rebooting

  • requested

  • running_setup

  • setup_failed

  • shutting_down

  • start_failed

  • stop_failed

  • stopped

  • stopping

  • terminated

  • terminating

source

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.

source

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.

source

pub fn get_subnet_id(&self) -> &Option<String>

The instance's subnet ID; applicable only if the stack is running in a VPC.

source

pub fn tenancy(self, input: impl Into<String>) -> Self

The instance's tenancy option, such as dedicated or host.

source

pub fn set_tenancy(self, input: Option<String>) -> Self

The instance's tenancy option, such as dedicated or host.

source

pub fn get_tenancy(&self) -> &Option<String>

The instance's tenancy option, such as dedicated or host.

source

pub fn virtualization_type(self, input: VirtualizationType) -> Self

The instance's virtualization type: paravirtual or hvm.

source

pub fn set_virtualization_type(self, input: Option<VirtualizationType>) -> Self

The instance's virtualization type: paravirtual or hvm.

source

pub fn get_virtualization_type(&self) -> &Option<VirtualizationType>

The instance's virtualization type: paravirtual or hvm.

source

pub fn build(self) -> Instance

Consumes the builder and constructs a Instance.

Trait Implementations§

source§

impl Clone for InstanceBuilder

source§

fn clone(&self) -> InstanceBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InstanceBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InstanceBuilder

source§

fn default() -> InstanceBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for InstanceBuilder

source§

fn eq(&self, other: &InstanceBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for InstanceBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more