aws_sdk_shield/client/
associate_drt_role.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 [`AssociateDRTRole`](crate::operation::associate_drt_role::builders::AssociateDRTRoleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`role_arn(impl Into<String>)`](crate::operation::associate_drt_role::builders::AssociateDRTRoleFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::associate_drt_role::builders::AssociateDRTRoleFluentBuilder::set_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the role the SRT will use to access your Amazon Web Services account.</p> <p>Prior to making the <code>AssociateDRTRole</code> request, you must attach the <a href="https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy">AWSShieldDRTAccessPolicy</a> managed policy to this role. For more information see <a href=" https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html">Attaching and Detaching IAM Policies</a>.</p><br>
7    /// - On success, responds with [`AssociateDrtRoleOutput`](crate::operation::associate_drt_role::AssociateDrtRoleOutput)
8    /// - On failure, responds with [`SdkError<AssociateDRTRoleError>`](crate::operation::associate_drt_role::AssociateDRTRoleError)
9    pub fn associate_drt_role(&self) -> crate::operation::associate_drt_role::builders::AssociateDRTRoleFluentBuilder {
10        crate::operation::associate_drt_role::builders::AssociateDRTRoleFluentBuilder::new(self.handle.clone())
11    }
12}