Module Smaws_Client_IAM.PutGroupPolicy

Adds or updates an inline policy document that is embedded in the specified IAM group.

A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide.

For information about the maximum number of inline policies that you can embed in a group, see IAM and STS quotas in the IAM User Guide.

Because policy documents can be large, you should use POST rather than GET when calling PutGroupPolicy. For general information about using the Query API with IAM, see Making query requests in the IAM User Guide.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `LimitExceededException of Types.limit_exceeded_exception | `MalformedPolicyDocumentException of Types.malformed_policy_document_exception | `NoSuchEntityException of Types.no_such_entity_exception | `ServiceFailureException of Types.service_failure_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.put_group_policy_request -> (Smaws_Lib.Smithy_api.Types.unit_, [> Smaws_Lib.Protocols.AwsQuery.error | `LimitExceededException of Types.limit_exceeded_exception | `MalformedPolicyDocumentException of Types.malformed_policy_document_exception | `NoSuchEntityException of Types.no_such_entity_exception | `ServiceFailureException of Types.service_failure_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.put_group_policy_request -> (Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `LimitExceededException of Types.limit_exceeded_exception | `MalformedPolicyDocumentException of Types.malformed_policy_document_exception | `NoSuchEntityException of Types.no_such_entity_exception | `ServiceFailureException of Types.service_failure_exception ] * Smaws_Lib.Response.metadata) Stdlib.result