1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AttachRolePolicy`](crate::operation::attach_role_policy::builders::AttachRolePolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`role_name(impl Into<String>)`](crate::operation::attach_role_policy::builders::AttachRolePolicyFluentBuilder::role_name) / [`set_role_name(Option<String>)`](crate::operation::attach_role_policy::builders::AttachRolePolicyFluentBuilder::set_role_name):<br>required: **true**<br><p>The name (friendly name, not ARN) of the role to attach the policy to.</p>  <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
    ///   - [`policy_arn(impl Into<String>)`](crate::operation::attach_role_policy::builders::AttachRolePolicyFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::attach_role_policy::builders::AttachRolePolicyFluentBuilder::set_policy_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the IAM policy you want to attach.</p>  <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p><br>
    /// - On success, responds with [`AttachRolePolicyOutput`](crate::operation::attach_role_policy::AttachRolePolicyOutput)
    /// - On failure, responds with [`SdkError<AttachRolePolicyError>`](crate::operation::attach_role_policy::AttachRolePolicyError)
    pub fn attach_role_policy(&self) -> crate::operation::attach_role_policy::builders::AttachRolePolicyFluentBuilder {
        crate::operation::attach_role_policy::builders::AttachRolePolicyFluentBuilder::new(self.handle.clone())
    }
}