You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IAM::Group
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::IAM::Group
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#arn ⇒ String
readonly
The Amazon Resource Name (ARN) specifying the group.
-
#create_date ⇒ Time
readonly
The date and time, in [ISO 8601 date-time format][1], when the group was created.
-
#group_id ⇒ String
readonly
The stable and unique string identifying the group.
-
#group_name ⇒ String
readonly
The friendly name that identifies the group.
-
#name ⇒ String
readonly
-
#path ⇒ String
readonly
The path to the group.
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#add_user(options = {}) ⇒ Struct
Adds the specified user to the specified group.
.
-
#attach_policy(options = {}) ⇒ Struct
Attaches the specified managed policy to the specified IAM group.
You use this API to attach a managed policy to a group.
-
#attached_policies(options = {}) ⇒ Collection<Policy>
Returns a Collection of Policy resources.
-
#create(options = {}) ⇒ Group
-
#create_policy(options = {}) ⇒ GroupPolicy
-
#delete ⇒ Struct
Deletes the specified IAM group.
-
#detach_policy(options = {}) ⇒ Struct
Removes the specified managed policy from the specified IAM group.
A group can also have inline policies embedded with it.
-
#initialize ⇒ Object
constructor
-
#policies(options = {}) ⇒ Collection<GroupPolicy>
Returns a Collection of GroupPolicy resources.
-
#policy(name) ⇒ GroupPolicy
-
#remove_user(options = {}) ⇒ Struct
Removes the specified user from the specified group.
.
-
#update(options = {}) ⇒ Group
-
#users(options = {}) ⇒ Collection<User>
Returns a Collection of User resources.
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(name, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#arn ⇒ String (readonly)
The Amazon Resource Name (ARN) specifying the group. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
#create_date ⇒ Time (readonly)
The date and time, in ISO 8601 date-time format, when the group was created.
#group_id ⇒ String (readonly)
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the IAM User Guide.
#group_name ⇒ String (readonly)
The friendly name that identifies the group.
#name ⇒ String (readonly)
#path ⇒ String (readonly)
The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide.
Instance Method Details
#add_user(options = {}) ⇒ Struct
Adds the specified user to the specified group.
#attach_policy(options = {}) ⇒ Struct
Attaches the specified managed policy to the specified IAM group.
You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.
#attached_policies(options = {}) ⇒ Collection<Policy>
Returns a Collection of Policy resources. No API requests are made until you call an enumerable method on the collection. Client#list_attached_group_policies will be called multiple times until every Policy has been yielded.
#create(options = {}) ⇒ Group
#create_policy(options = {}) ⇒ GroupPolicy
#delete ⇒ Struct
Deletes the specified IAM group. The group must not contain any users or have any attached policies.
#detach_policy(options = {}) ⇒ Struct
Removes the specified managed policy from the specified IAM group.
A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.
#policies(options = {}) ⇒ Collection<GroupPolicy>
Returns a Collection of Aws::IAM::GroupPolicy resources. No API requests are made until you call an enumerable method on the collection. Client#list_group_policies will be called multiple times until every Aws::IAM::GroupPolicy has been yielded.
#policy(name) ⇒ GroupPolicy
#remove_user(options = {}) ⇒ Struct
Removes the specified user from the specified group.
#update(options = {}) ⇒ Group
#users(options = {}) ⇒ Collection<User>
Returns a Collection of User resources. No API requests are made until you call an enumerable method on the collection. Client#get_group will be called multiple times until every User has been yielded.