public class AttachGroupPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AttachGroupPolicy operation
.
Attaches the specified managed policy to the specified 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, refer to Managed Policies and Inline Policies in the Using IAM guide.
NOOP
Constructor and Description |
---|
AttachGroupPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
AttachGroupPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getGroupName()
The name (friendly name, not ARN) of the group to attach the policy
to.
|
String |
getPolicyArn()
The Amazon Resource Name (ARN).
|
int |
hashCode() |
void |
setGroupName(String groupName)
The name (friendly name, not ARN) of the group to attach the policy
to.
|
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachGroupPolicyRequest |
withGroupName(String groupName)
The name (friendly name, not ARN) of the group to attach the policy
to.
|
AttachGroupPolicyRequest |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getGroupName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setGroupName(String groupName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
groupName
- The name (friendly name, not ARN) of the group to attach the policy
to.public AttachGroupPolicyRequest withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
groupName
- The name (friendly name, not ARN) of the group to attach the policy
to.public String getPolicyArn()
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public AttachGroupPolicyRequest withPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public String toString()
toString
in class Object
Object.toString()
public AttachGroupPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.