Struct aws_sdk_iot::input::DescribeEndpointInput
source · #[non_exhaustive]pub struct DescribeEndpointInput { /* private fields */ }
Expand description
The input for the DescribeEndpoint operation.
Implementations§
source§impl DescribeEndpointInput
impl DescribeEndpointInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeEndpoint, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeEndpoint, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeEndpoint
>
Examples found in repository?
src/client.rs (line 12519)
12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeEndpoint,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeEndpointError>,
> {
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::DescribeEndpointOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeEndpointError>,
> {
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 DescribeEndpointInput
.
source§impl DescribeEndpointInput
impl DescribeEndpointInput
sourcepub fn endpoint_type(&self) -> Option<&str>
pub fn endpoint_type(&self) -> Option<&str>
The endpoint type. Valid endpoint types include:
-
iot:Data
- Returns a VeriSign signed data endpoint.
-
iot:Data-ATS
- Returns an ATS signed data endpoint.
-
iot:CredentialProvider
- Returns an IoT credentials provider API endpoint.
-
iot:Jobs
- Returns an IoT device management Jobs API endpoint.
We strongly recommend that customers use the newer iot:Data-ATS
endpoint type to avoid issues related to the widespread distrust of Symantec certificate authorities.
Trait Implementations§
source§impl Clone for DescribeEndpointInput
impl Clone for DescribeEndpointInput
source§fn clone(&self) -> DescribeEndpointInput
fn clone(&self) -> DescribeEndpointInput
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