Struct aws_sdk_ec2::input::DescribePlacementGroupsInput
source · #[non_exhaustive]pub struct DescribePlacementGroupsInput { /* private fields */ }
Implementations§
source§impl DescribePlacementGroupsInput
impl DescribePlacementGroupsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribePlacementGroups, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribePlacementGroups, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribePlacementGroups
>
Examples found in repository?
43852 43853 43854 43855 43856 43857 43858 43859 43860 43861 43862 43863 43864 43865 43866 43867 43868 43869 43870 43871 43872 43873 43874 43875 43876 43877 43878 43879 43880 43881 43882 43883 43884 43885 43886 43887 43888 43889 43890 43891 43892 43893 43894
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribePlacementGroups,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribePlacementGroupsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribePlacementGroupsOutput,
aws_smithy_http::result::SdkError<crate::error::DescribePlacementGroupsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribePlacementGroupsInput
.
source§impl DescribePlacementGroupsInput
impl DescribePlacementGroupsInput
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
The filters.
-
group-name
- The name of the placement group. -
group-arn
- The Amazon Resource Name (ARN) of the placement group. -
spread-level
- The spread level for the placement group (host
|rack
). -
state
- The state of the placement group (pending
|available
|deleting
|deleted
). -
strategy
- The strategy of the placement group (cluster
|spread
|partition
). -
tag:
- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value. -
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn group_names(&self) -> Option<&[String]>
pub fn group_names(&self) -> Option<&[String]>
The names of the placement groups.
Default: Describes all your placement groups, or only those otherwise specified.
Trait Implementations§
source§impl Clone for DescribePlacementGroupsInput
impl Clone for DescribePlacementGroupsInput
source§fn clone(&self) -> DescribePlacementGroupsInput
fn clone(&self) -> DescribePlacementGroupsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more