Struct aws_sdk_opsworkscm::types::builders::ServerBuilder

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

A builder for Server.

Implementations§

source§

impl ServerBuilder

source

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

Associate a public IP address with a server that you are launching.

source

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

Associate a public IP address with a server that you are launching.

source

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

Associate a public IP address with a server that you are launching.

source

pub fn backup_retention_count(self, input: i32) -> Self

The number of automated backups to keep.

source

pub fn set_backup_retention_count(self, input: Option<i32>) -> Self

The number of automated backups to keep.

source

pub fn get_backup_retention_count(&self) -> &Option<i32>

The number of automated backups to keep.

source

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

The name of the server.

source

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

The name of the server.

source

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

The name of the server.

source

pub fn created_at(self, input: DateTime) -> Self

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z

source

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

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z

source

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

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z

source

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

The ARN of the CloudFormation stack that was used to create the server.

source

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

The ARN of the CloudFormation stack that was used to create the server.

source

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

The ARN of the CloudFormation stack that was used to create the server.

source

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

An optional public endpoint of a server, such as https://aws.my-company.com. You cannot access the server by using the Endpoint value if the server has a CustomDomain specified.

source

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

An optional public endpoint of a server, such as https://aws.my-company.com. You cannot access the server by using the Endpoint value if the server has a CustomDomain specified.

source

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

An optional public endpoint of a server, such as https://aws.my-company.com. You cannot access the server by using the Endpoint value if the server has a CustomDomain specified.

source

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

Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.

source

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

Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.

source

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

Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.

source

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

A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the server by using the Endpoint value if the server has a CustomDomain specified.

source

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

A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the server by using the Endpoint value if the server has a CustomDomain specified.

source

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

A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the server by using the Endpoint value if the server has a CustomDomain specified.

source

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

The engine type of the server. Valid values in this release include ChefAutomate and Puppet.

source

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

The engine type of the server. Valid values in this release include ChefAutomate and Puppet.

source

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

The engine type of the server. Valid values in this release include ChefAutomate and Puppet.

source

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

The engine model of the server. Valid values in this release include Monolithic for Puppet and Single for Chef.

source

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

The engine model of the server. Valid values in this release include Monolithic for Puppet and Single for Chef.

source

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

The engine model of the server. Valid values in this release include Monolithic for Puppet and Single for Chef.

source

pub fn engine_attributes(self, input: EngineAttribute) -> Self

Appends an item to engine_attributes.

To override the contents of this collection use set_engine_attributes.

The response of a createServer() request returns the master credential to access the server in EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of createServer().

Attributes returned in a createServer response for Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A base64-encoded RSA private key that is generated by AWS OpsWorks for Chef Automate. This private key is required to access the Chef API.

  • CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.

Attributes returned in a createServer response for Puppet

  • PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including a README and a required private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents.

  • PUPPET_ADMIN_PASSWORD: An administrator password that you can use to sign in to the Puppet Enterprise console after the server is online.

source

pub fn set_engine_attributes(self, input: Option<Vec<EngineAttribute>>) -> Self

The response of a createServer() request returns the master credential to access the server in EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of createServer().

Attributes returned in a createServer response for Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A base64-encoded RSA private key that is generated by AWS OpsWorks for Chef Automate. This private key is required to access the Chef API.

  • CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.

Attributes returned in a createServer response for Puppet

  • PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including a README and a required private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents.

  • PUPPET_ADMIN_PASSWORD: An administrator password that you can use to sign in to the Puppet Enterprise console after the server is online.

source

pub fn get_engine_attributes(&self) -> &Option<Vec<EngineAttribute>>

The response of a createServer() request returns the master credential to access the server in EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of createServer().

Attributes returned in a createServer response for Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A base64-encoded RSA private key that is generated by AWS OpsWorks for Chef Automate. This private key is required to access the Chef API.

  • CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.

Attributes returned in a createServer response for Puppet

  • PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including a README and a required private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents.

  • PUPPET_ADMIN_PASSWORD: An administrator password that you can use to sign in to the Puppet Enterprise console after the server is online.

source

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

The engine version of the server. For a Chef server, the valid value for EngineVersion is currently 2. For a Puppet server, specify either 2019 or 2017.

source

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

The engine version of the server. For a Chef server, the valid value for EngineVersion is currently 2. For a Puppet server, specify either 2019 or 2017.

source

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

The engine version of the server. For a Chef server, the valid value for EngineVersion is currently 2. For a Puppet server, specify either 2019 or 2017.

source

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

The instance profile ARN of the server.

source

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

The instance profile ARN of the server.

source

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

The instance profile ARN of the server.

source

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

The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance type that is shown in the EC2 console.

source

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

The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance type that is shown in the EC2 console.

source

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

The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance type that is shown in the EC2 console.

source

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

The key pair associated with the server.

source

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

The key pair associated with the server.

source

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

The key pair associated with the server.

source

pub fn maintenance_status(self, input: MaintenanceStatus) -> Self

The status of the most recent server maintenance run. Shows SUCCESS or FAILED.

source

pub fn set_maintenance_status(self, input: Option<MaintenanceStatus>) -> Self

The status of the most recent server maintenance run. Shows SUCCESS or FAILED.

source

pub fn get_maintenance_status(&self) -> &Option<MaintenanceStatus>

The status of the most recent server maintenance run. Shows SUCCESS or FAILED.

source

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

The preferred maintenance period specified for the server.

source

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

The preferred maintenance period specified for the server.

source

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

The preferred maintenance period specified for the server.

source

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

The preferred backup period specified for the server.

source

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

The preferred backup period specified for the server.

source

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

The preferred backup period specified for the server.

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.

The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same security groups that are shown in the EC2 console.

source

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

The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same security groups that are shown in the EC2 console.

source

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

The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same security groups that are shown in the EC2 console.

source

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

The service role ARN used to create the server.

source

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

The service role ARN used to create the server.

source

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

The service role ARN used to create the server.

source

pub fn status(self, input: ServerStatus) -> Self

The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.

source

pub fn set_status(self, input: Option<ServerStatus>) -> Self

The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.

source

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

The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.

source

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

Depending on the server status, this field has either a human-readable message (such as a create or backup error), or an escaped block of JSON (used for health check results).

source

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

Depending on the server status, this field has either a human-readable message (such as a create or backup error), or an escaped block of JSON (used for health check results).

source

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

Depending on the server status, this field has either a human-readable message (such as a create or backup error), or an escaped block of JSON (used for health check results).

source

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

Appends an item to subnet_ids.

To override the contents of this collection use set_subnet_ids.

The subnet IDs specified in a CreateServer request.

source

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

The subnet IDs specified in a CreateServer request.

source

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

The subnet IDs specified in a CreateServer request.

source

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

The ARN of the server.

source

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

The ARN of the server.

source

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

The ARN of the server.

source

pub fn build(self) -> Server

Consumes the builder and constructs a Server.

Trait Implementations§

source§

impl Clone for ServerBuilder

source§

fn clone(&self) -> ServerBuilder

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 ServerBuilder

source§

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

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

impl Default for ServerBuilder

source§

fn default() -> ServerBuilder

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

impl PartialEq for ServerBuilder

source§

fn eq(&self, other: &ServerBuilder) -> 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 ServerBuilder

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