#[non_exhaustive]pub struct GetControlOutputBuilder { /* private fields */ }Expand description
A builder for GetControlOutput.
Implementations§
Source§impl GetControlOutputBuilder
impl GetControlOutputBuilder
Sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the control.
This field is required.Sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the control.
Sourcepub fn aliases(self, input: impl Into<String>) -> Self
pub fn aliases(self, input: impl Into<String>) -> Self
Appends an item to aliases.
To override the contents of this collection use set_aliases.
A list of alternative identifiers for the control. These are human-readable designators, such as SH.S3.1. Several aliases can refer to the same control across different Amazon Web Services services or compliance frameworks.
Sourcepub fn set_aliases(self, input: Option<Vec<String>>) -> Self
pub fn set_aliases(self, input: Option<Vec<String>>) -> Self
A list of alternative identifiers for the control. These are human-readable designators, such as SH.S3.1. Several aliases can refer to the same control across different Amazon Web Services services or compliance frameworks.
Sourcepub fn get_aliases(&self) -> &Option<Vec<String>>
pub fn get_aliases(&self) -> &Option<Vec<String>>
A list of alternative identifiers for the control. These are human-readable designators, such as SH.S3.1. Several aliases can refer to the same control across different Amazon Web Services services or compliance frameworks.
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The display name of the control.
This field is required.Sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of what the control does.
This field is required.Sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of what the control does.
Sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of what the control does.
Sourcepub fn behavior(self, input: ControlBehavior) -> Self
pub fn behavior(self, input: ControlBehavior) -> Self
A term that identifies the control's functional behavior. One of Preventive, Detective, Proactive
Sourcepub fn set_behavior(self, input: Option<ControlBehavior>) -> Self
pub fn set_behavior(self, input: Option<ControlBehavior>) -> Self
A term that identifies the control's functional behavior. One of Preventive, Detective, Proactive
Sourcepub fn get_behavior(&self) -> &Option<ControlBehavior>
pub fn get_behavior(&self) -> &Option<ControlBehavior>
A term that identifies the control's functional behavior. One of Preventive, Detective, Proactive
Sourcepub fn severity(self, input: ControlSeverity) -> Self
pub fn severity(self, input: ControlSeverity) -> Self
An enumerated type, with the following possible values:
Sourcepub fn set_severity(self, input: Option<ControlSeverity>) -> Self
pub fn set_severity(self, input: Option<ControlSeverity>) -> Self
An enumerated type, with the following possible values:
Sourcepub fn get_severity(&self) -> &Option<ControlSeverity>
pub fn get_severity(&self) -> &Option<ControlSeverity>
An enumerated type, with the following possible values:
Sourcepub fn region_configuration(self, input: RegionConfiguration) -> Self
pub fn region_configuration(self, input: RegionConfiguration) -> Self
Returns information about the control, including the scope of the control, if enabled, and the Regions in which the control is available for deployment. For more information about scope, see Global services.
If you are applying controls through an Amazon Web Services Control Tower landing zone environment, remember that the values returned in the RegionConfiguration API operation are not related to the governed Regions in your landing zone. For example, if you are governing Regions A,B,and C while the control is available in Regions A, B, C, and D, you'd see a response with DeployableRegions of A, B, C, and D for a control with REGIONAL scope, even though you may not intend to deploy the control in Region D, because you do not govern it through your landing zone.
Sourcepub fn set_region_configuration(
self,
input: Option<RegionConfiguration>,
) -> Self
pub fn set_region_configuration( self, input: Option<RegionConfiguration>, ) -> Self
Returns information about the control, including the scope of the control, if enabled, and the Regions in which the control is available for deployment. For more information about scope, see Global services.
If you are applying controls through an Amazon Web Services Control Tower landing zone environment, remember that the values returned in the RegionConfiguration API operation are not related to the governed Regions in your landing zone. For example, if you are governing Regions A,B,and C while the control is available in Regions A, B, C, and D, you'd see a response with DeployableRegions of A, B, C, and D for a control with REGIONAL scope, even though you may not intend to deploy the control in Region D, because you do not govern it through your landing zone.
Sourcepub fn get_region_configuration(&self) -> &Option<RegionConfiguration>
pub fn get_region_configuration(&self) -> &Option<RegionConfiguration>
Returns information about the control, including the scope of the control, if enabled, and the Regions in which the control is available for deployment. For more information about scope, see Global services.
If you are applying controls through an Amazon Web Services Control Tower landing zone environment, remember that the values returned in the RegionConfiguration API operation are not related to the governed Regions in your landing zone. For example, if you are governing Regions A,B,and C while the control is available in Regions A, B, C, and D, you'd see a response with DeployableRegions of A, B, C, and D for a control with REGIONAL scope, even though you may not intend to deploy the control in Region D, because you do not govern it through your landing zone.
Sourcepub fn implementation(self, input: ImplementationDetails) -> Self
pub fn implementation(self, input: ImplementationDetails) -> Self
Returns information about the control, as an ImplementationDetails object that shows the underlying implementation type for a control.
Sourcepub fn set_implementation(self, input: Option<ImplementationDetails>) -> Self
pub fn set_implementation(self, input: Option<ImplementationDetails>) -> Self
Returns information about the control, as an ImplementationDetails object that shows the underlying implementation type for a control.
Sourcepub fn get_implementation(&self) -> &Option<ImplementationDetails>
pub fn get_implementation(&self) -> &Option<ImplementationDetails>
Returns information about the control, as an ImplementationDetails object that shows the underlying implementation type for a control.
Sourcepub fn parameters(self, input: ControlParameter) -> Self
pub fn parameters(self, input: ControlParameter) -> Self
Appends an item to parameters.
To override the contents of this collection use set_parameters.
Returns an array of ControlParameter objects that specify the parameters a control supports. An empty list is returned for controls that don’t support parameters.
Sourcepub fn set_parameters(self, input: Option<Vec<ControlParameter>>) -> Self
pub fn set_parameters(self, input: Option<Vec<ControlParameter>>) -> Self
Returns an array of ControlParameter objects that specify the parameters a control supports. An empty list is returned for controls that don’t support parameters.
Sourcepub fn get_parameters(&self) -> &Option<Vec<ControlParameter>>
pub fn get_parameters(&self) -> &Option<Vec<ControlParameter>>
Returns an array of ControlParameter objects that specify the parameters a control supports. An empty list is returned for controls that don’t support parameters.
Sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
A timestamp that notes the time when the control was released (start of its life) as a governance capability in Amazon Web Services.
Sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
A timestamp that notes the time when the control was released (start of its life) as a governance capability in Amazon Web Services.
Sourcepub fn get_create_time(&self) -> &Option<DateTime>
pub fn get_create_time(&self) -> &Option<DateTime>
A timestamp that notes the time when the control was released (start of its life) as a governance capability in Amazon Web Services.
Sourcepub fn governed_resources(self, input: impl Into<String>) -> Self
pub fn governed_resources(self, input: impl Into<String>) -> Self
Appends an item to governed_resources.
To override the contents of this collection use set_governed_resources.
A list of Amazon Web Services resource types that are governed by this control. This information helps you understand which controls can govern certain types of resources, and conversely, which resources are affected when the control is implemented. The resources are represented as Amazon Web Services CloudFormation resource types. If GovernedResources cannot be represented by available CloudFormation resource types, it’s returned as an empty list.
Sourcepub fn set_governed_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_governed_resources(self, input: Option<Vec<String>>) -> Self
A list of Amazon Web Services resource types that are governed by this control. This information helps you understand which controls can govern certain types of resources, and conversely, which resources are affected when the control is implemented. The resources are represented as Amazon Web Services CloudFormation resource types. If GovernedResources cannot be represented by available CloudFormation resource types, it’s returned as an empty list.
Sourcepub fn get_governed_resources(&self) -> &Option<Vec<String>>
pub fn get_governed_resources(&self) -> &Option<Vec<String>>
A list of Amazon Web Services resource types that are governed by this control. This information helps you understand which controls can govern certain types of resources, and conversely, which resources are affected when the control is implemented. The resources are represented as Amazon Web Services CloudFormation resource types. If GovernedResources cannot be represented by available CloudFormation resource types, it’s returned as an empty list.
Sourcepub fn build(self) -> Result<GetControlOutput, BuildError>
pub fn build(self) -> Result<GetControlOutput, BuildError>
Consumes the builder and constructs a GetControlOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for GetControlOutputBuilder
impl Clone for GetControlOutputBuilder
Source§fn clone(&self) -> GetControlOutputBuilder
fn clone(&self) -> GetControlOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetControlOutputBuilder
impl Debug for GetControlOutputBuilder
Source§impl Default for GetControlOutputBuilder
impl Default for GetControlOutputBuilder
Source§fn default() -> GetControlOutputBuilder
fn default() -> GetControlOutputBuilder
Source§impl PartialEq for GetControlOutputBuilder
impl PartialEq for GetControlOutputBuilder
impl StructuralPartialEq for GetControlOutputBuilder
Auto Trait Implementations§
impl Freeze for GetControlOutputBuilder
impl RefUnwindSafe for GetControlOutputBuilder
impl Send for GetControlOutputBuilder
impl Sync for GetControlOutputBuilder
impl Unpin for GetControlOutputBuilder
impl UnwindSafe for GetControlOutputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);