#[non_exhaustive]pub struct GetOrganizationConfigRuleDetailedStatusInput { /* private fields */ }Implementations§
source§impl GetOrganizationConfigRuleDetailedStatusInput
impl GetOrganizationConfigRuleDetailedStatusInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetOrganizationConfigRuleDetailedStatus, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetOrganizationConfigRuleDetailedStatus, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetOrganizationConfigRuleDetailedStatus>
Examples found in repository?
src/client.rs (line 7177)
7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetOrganizationConfigRuleDetailedStatus,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::GetOrganizationConfigRuleDetailedStatusError,
>,
> {
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::GetOrganizationConfigRuleDetailedStatusOutput,
aws_smithy_http::result::SdkError<
crate::error::GetOrganizationConfigRuleDetailedStatusError,
>,
> {
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
}More examples
src/paginator.rs (line 3445)
3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483
pub fn send(
self,
) -> impl tokio_stream::Stream<
Item = std::result::Result<
crate::output::GetOrganizationConfigRuleDetailedStatusOutput,
aws_smithy_http::result::SdkError<
crate::error::GetOrganizationConfigRuleDetailedStatusError,
>,
>,
> + Unpin {
// Move individual fields out of self for the borrow checker
let builder = self.builder;
let handle = self.handle;
aws_smithy_async::future::fn_stream::FnStream::new(move |tx| {
Box::pin(async move {
// Build the input for the first time. If required fields are missing, this is where we'll produce an early error.
let mut input = match builder
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)
{
Ok(input) => input,
Err(e) => {
let _ = tx.send(Err(e)).await;
return;
}
};
loop {
let op = match input
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)
{
Ok(op) => op,
Err(e) => {
let _ = tx.send(Err(e)).await;
return;
}
};
let resp = handle.client.call(op).await;
// If the input member is None or it was an error
let done = match resp {
Ok(ref resp) => {
let new_token = crate::lens::reflens_structure_crate_output_get_organization_config_rule_detailed_status_output_next_token(resp);
let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
if !is_empty
&& new_token == input.next_token.as_ref()
&& self.stop_on_duplicate_token
{
true
} else {
input.next_token = new_token.cloned();
is_empty
}
}
Err(_) => true,
};
if tx.send(resp).await.is_err() {
// receiving end was dropped
return;
}
if done {
return;
}
}
})
})
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetOrganizationConfigRuleDetailedStatusInput.
source§impl GetOrganizationConfigRuleDetailedStatusInput
impl GetOrganizationConfigRuleDetailedStatusInput
sourcepub fn organization_config_rule_name(&self) -> Option<&str>
pub fn organization_config_rule_name(&self) -> Option<&str>
The name of your organization Config rule for which you want status details for member accounts.
sourcepub fn filters(&self) -> Option<&StatusDetailFilters>
pub fn filters(&self) -> Option<&StatusDetailFilters>
A StatusDetailFilters object.
sourcepub fn limit(&self) -> i32
pub fn limit(&self) -> i32
The maximum number of OrganizationConfigRuleDetailedStatus returned on each page. If you do not specify a number, Config uses the default. The default is 100.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.
Trait Implementations§
source§impl Clone for GetOrganizationConfigRuleDetailedStatusInput
impl Clone for GetOrganizationConfigRuleDetailedStatusInput
source§fn clone(&self) -> GetOrganizationConfigRuleDetailedStatusInput
fn clone(&self) -> GetOrganizationConfigRuleDetailedStatusInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more