aws_sdk_cloudwatchlogs/client/get_delivery_destination_policy.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetDeliveryDestinationPolicy`](crate::operation::get_delivery_destination_policy::builders::GetDeliveryDestinationPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`delivery_destination_name(impl Into<String>)`](crate::operation::get_delivery_destination_policy::builders::GetDeliveryDestinationPolicyFluentBuilder::delivery_destination_name) / [`set_delivery_destination_name(Option<String>)`](crate::operation::get_delivery_destination_policy::builders::GetDeliveryDestinationPolicyFluentBuilder::set_delivery_destination_name):<br>required: **true**<br><p>The name of the delivery destination that you want to retrieve the policy of.</p><br>
7 /// - On success, responds with [`GetDeliveryDestinationPolicyOutput`](crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyOutput) with field(s):
8 /// - [`policy(Option<Policy>)`](crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyOutput::policy): <p>The IAM policy for this delivery destination.</p>
9 /// - On failure, responds with [`SdkError<GetDeliveryDestinationPolicyError>`](crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError)
10 pub fn get_delivery_destination_policy(
11 &self,
12 ) -> crate::operation::get_delivery_destination_policy::builders::GetDeliveryDestinationPolicyFluentBuilder {
13 crate::operation::get_delivery_destination_policy::builders::GetDeliveryDestinationPolicyFluentBuilder::new(self.handle.clone())
14 }
15}