Struct aws_sdk_opsworkscm::operation::export_server_engine_attribute::builders::ExportServerEngineAttributeFluentBuilder
source · pub struct ExportServerEngineAttributeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ExportServerEngineAttribute
.
Exports a specified server engine attribute as a base64-encoded string. For example, you can export user data that you can use in EC2 to associate nodes with a server.
This operation is synchronous.
A ValidationException
is raised when parameters of the request are not valid. A ResourceNotFoundException
is thrown when the server does not exist. An InvalidStateException
is thrown when the server is in any of the following states: CREATING, TERMINATED, FAILED or DELETING.
Implementations§
source§impl ExportServerEngineAttributeFluentBuilder
impl ExportServerEngineAttributeFluentBuilder
sourcepub fn as_input(&self) -> &ExportServerEngineAttributeInputBuilder
pub fn as_input(&self) -> &ExportServerEngineAttributeInputBuilder
Access the ExportServerEngineAttribute as a reference.
sourcepub async fn send(
self
) -> Result<ExportServerEngineAttributeOutput, SdkError<ExportServerEngineAttributeError, HttpResponse>>
pub async fn send( self ) -> Result<ExportServerEngineAttributeOutput, SdkError<ExportServerEngineAttributeError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ExportServerEngineAttributeOutput, ExportServerEngineAttributeError, Self>
pub fn customize( self ) -> CustomizableOperation<ExportServerEngineAttributeOutput, ExportServerEngineAttributeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn export_attribute_name(self, input: impl Into<String>) -> Self
pub fn export_attribute_name(self, input: impl Into<String>) -> Self
The name of the export attribute. Currently, the supported export attribute is Userdata
. This exports a user data script that includes parameters and values provided in the InputAttributes
list.
sourcepub fn set_export_attribute_name(self, input: Option<String>) -> Self
pub fn set_export_attribute_name(self, input: Option<String>) -> Self
The name of the export attribute. Currently, the supported export attribute is Userdata
. This exports a user data script that includes parameters and values provided in the InputAttributes
list.
sourcepub fn get_export_attribute_name(&self) -> &Option<String>
pub fn get_export_attribute_name(&self) -> &Option<String>
The name of the export attribute. Currently, the supported export attribute is Userdata
. This exports a user data script that includes parameters and values provided in the InputAttributes
list.
sourcepub fn server_name(self, input: impl Into<String>) -> Self
pub fn server_name(self, input: impl Into<String>) -> Self
The name of the server from which you are exporting the attribute.
sourcepub fn set_server_name(self, input: Option<String>) -> Self
pub fn set_server_name(self, input: Option<String>) -> Self
The name of the server from which you are exporting the attribute.
sourcepub fn get_server_name(&self) -> &Option<String>
pub fn get_server_name(&self) -> &Option<String>
The name of the server from which you are exporting the attribute.
sourcepub fn input_attributes(self, input: EngineAttribute) -> Self
pub fn input_attributes(self, input: EngineAttribute) -> Self
Appends an item to InputAttributes
.
To override the contents of this collection use set_input_attributes
.
The list of engine attributes. The list type is EngineAttribute
. An EngineAttribute
list item is a pair that includes an attribute name and its value. For the Userdata
ExportAttributeName, the following are supported engine attribute names.
-
RunList In Chef, a list of roles or recipes that are run in the specified order. In Puppet, this parameter is ignored.
-
OrganizationName In Chef, an organization name. AWS OpsWorks for Chef Automate always creates the organization
default
. In Puppet, this parameter is ignored. -
NodeEnvironment In Chef, a node environment (for example, development, staging, or one-box). In Puppet, this parameter is ignored.
-
NodeClientVersion In Chef, the version of the Chef engine (three numbers separated by dots, such as 13.8.5). If this attribute is empty, OpsWorks for Chef Automate uses the most current version. In Puppet, this parameter is ignored.
sourcepub fn set_input_attributes(self, input: Option<Vec<EngineAttribute>>) -> Self
pub fn set_input_attributes(self, input: Option<Vec<EngineAttribute>>) -> Self
The list of engine attributes. The list type is EngineAttribute
. An EngineAttribute
list item is a pair that includes an attribute name and its value. For the Userdata
ExportAttributeName, the following are supported engine attribute names.
-
RunList In Chef, a list of roles or recipes that are run in the specified order. In Puppet, this parameter is ignored.
-
OrganizationName In Chef, an organization name. AWS OpsWorks for Chef Automate always creates the organization
default
. In Puppet, this parameter is ignored. -
NodeEnvironment In Chef, a node environment (for example, development, staging, or one-box). In Puppet, this parameter is ignored.
-
NodeClientVersion In Chef, the version of the Chef engine (three numbers separated by dots, such as 13.8.5). If this attribute is empty, OpsWorks for Chef Automate uses the most current version. In Puppet, this parameter is ignored.
sourcepub fn get_input_attributes(&self) -> &Option<Vec<EngineAttribute>>
pub fn get_input_attributes(&self) -> &Option<Vec<EngineAttribute>>
The list of engine attributes. The list type is EngineAttribute
. An EngineAttribute
list item is a pair that includes an attribute name and its value. For the Userdata
ExportAttributeName, the following are supported engine attribute names.
-
RunList In Chef, a list of roles or recipes that are run in the specified order. In Puppet, this parameter is ignored.
-
OrganizationName In Chef, an organization name. AWS OpsWorks for Chef Automate always creates the organization
default
. In Puppet, this parameter is ignored. -
NodeEnvironment In Chef, a node environment (for example, development, staging, or one-box). In Puppet, this parameter is ignored.
-
NodeClientVersion In Chef, the version of the Chef engine (three numbers separated by dots, such as 13.8.5). If this attribute is empty, OpsWorks for Chef Automate uses the most current version. In Puppet, this parameter is ignored.
Trait Implementations§
source§impl Clone for ExportServerEngineAttributeFluentBuilder
impl Clone for ExportServerEngineAttributeFluentBuilder
source§fn clone(&self) -> ExportServerEngineAttributeFluentBuilder
fn clone(&self) -> ExportServerEngineAttributeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ExportServerEngineAttributeFluentBuilder
impl !RefUnwindSafe for ExportServerEngineAttributeFluentBuilder
impl Send for ExportServerEngineAttributeFluentBuilder
impl Sync for ExportServerEngineAttributeFluentBuilder
impl Unpin for ExportServerEngineAttributeFluentBuilder
impl !UnwindSafe for ExportServerEngineAttributeFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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