aws_sdk_iam/client/
attach_group_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 [`AttachGroupPolicy`](crate::operation::attach_group_policy::builders::AttachGroupPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`group_name(impl Into<String>)`](crate::operation::attach_group_policy::builders::AttachGroupPolicyFluentBuilder::group_name) / [`set_group_name(Option<String>)`](crate::operation::attach_group_policy::builders::AttachGroupPolicyFluentBuilder::set_group_name):<br>required: **true**<br><p>The name (friendly name, not ARN) of the group 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>
7    ///   - [`policy_arn(impl Into<String>)`](crate::operation::attach_group_policy::builders::AttachGroupPolicyFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::attach_group_policy::builders::AttachGroupPolicyFluentBuilder::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>
8    /// - On success, responds with [`AttachGroupPolicyOutput`](crate::operation::attach_group_policy::AttachGroupPolicyOutput)
9    /// - On failure, responds with [`SdkError<AttachGroupPolicyError>`](crate::operation::attach_group_policy::AttachGroupPolicyError)
10    pub fn attach_group_policy(&self) -> crate::operation::attach_group_policy::builders::AttachGroupPolicyFluentBuilder {
11        crate::operation::attach_group_policy::builders::AttachGroupPolicyFluentBuilder::new(self.handle.clone())
12    }
13}