public class ListEntitiesForPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ListEntitiesForPolicy operation.
Lists all users, groups, and roles that the specified managed policy is attached to.
You can use the optional EntityFilter parameter to limit
the results to a particular type of entity (users, groups, or roles).
For example, to list only the roles that are attached to the specified
policy, set EntityFilter to Role .
You can paginate the results using the MaxItems and
Marker parameters.
NOOP| Constructor and Description |
|---|
ListEntitiesForPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
ListEntitiesForPolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getEntityFilter()
The entity type to use for filtering the results.
|
String |
getMarker()
Use this parameter only when paginating results and only after you
receive a response indicating that the results are truncated.
|
Integer |
getMaxItems()
Use this only when paginating results to indicate the maximum number
of items you want in the response.
|
String |
getPathPrefix()
The path prefix for filtering the results.
|
String |
getPolicyArn()
The Amazon Resource Name (ARN).
|
int |
hashCode() |
void |
setEntityFilter(EntityType entityFilter)
The entity type to use for filtering the results.
|
void |
setEntityFilter(String entityFilter)
The entity type to use for filtering the results.
|
void |
setMarker(String marker)
Use this parameter only when paginating results and only after you
receive a response indicating that the results are truncated.
|
void |
setMaxItems(Integer maxItems)
Use this only when paginating results to indicate the maximum number
of items you want in the response.
|
void |
setPathPrefix(String pathPrefix)
The path prefix for filtering the results.
|
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListEntitiesForPolicyRequest |
withEntityFilter(EntityType entityFilter)
The entity type to use for filtering the results.
|
ListEntitiesForPolicyRequest |
withEntityFilter(String entityFilter)
The entity type to use for filtering the results.
|
ListEntitiesForPolicyRequest |
withMarker(String marker)
Use this parameter only when paginating results and only after you
receive a response indicating that the results are truncated.
|
ListEntitiesForPolicyRequest |
withMaxItems(Integer maxItems)
Use this only when paginating results to indicate the maximum number
of items you want in the response.
|
ListEntitiesForPolicyRequest |
withPathPrefix(String pathPrefix)
The path prefix for filtering the results.
|
ListEntitiesForPolicyRequest |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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 ListEntitiesForPolicyRequest 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 getEntityFilter()
For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
Constraints:
Allowed Values: User, Role, Group, LocalManagedPolicy, AWSManagedPolicy
For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
EntityTypepublic void setEntityFilter(String entityFilter)
For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
Constraints:
Allowed Values: User, Role, Group, LocalManagedPolicy, AWSManagedPolicy
entityFilter - The entity type to use for filtering the results. For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
EntityTypepublic ListEntitiesForPolicyRequest withEntityFilter(String entityFilter)
For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: User, Role, Group, LocalManagedPolicy, AWSManagedPolicy
entityFilter - The entity type to use for filtering the results. For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
EntityTypepublic void setEntityFilter(EntityType entityFilter)
For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
Constraints:
Allowed Values: User, Role, Group, LocalManagedPolicy, AWSManagedPolicy
entityFilter - The entity type to use for filtering the results. For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
EntityTypepublic ListEntitiesForPolicyRequest withEntityFilter(EntityType entityFilter)
For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: User, Role, Group, LocalManagedPolicy, AWSManagedPolicy
entityFilter - The entity type to use for filtering the results. For example, when
EntityFilter is Role, only the roles that
are attached to the specified policy are returned. This parameter is
optional. If it is not included, all attached entities (users, groups,
and roles) are returned.
EntityTypepublic String getPathPrefix()
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
public void setPathPrefix(String pathPrefix)
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
pathPrefix - The path prefix for filtering the results. This parameter is optional.
If it is not included, it defaults to a slash (/), listing all
entities.public ListEntitiesForPolicyRequest withPathPrefix(String pathPrefix)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
pathPrefix - The path prefix for filtering the results. This parameter is optional.
If it is not included, it defaults to a slash (/), listing all
entities.public String getMarker()
Marker element in the response that
you received to indicate where the next call should start.
Constraints:
Length: 1 - 320
Pattern: [\u0020-\u00FF]+
Marker element in the response that
you received to indicate where the next call should start.public void setMarker(String marker)
Marker element in the response that
you received to indicate where the next call should start.
Constraints:
Length: 1 - 320
Pattern: [\u0020-\u00FF]+
marker - Use this parameter only when paginating results and only after you
receive a response indicating that the results are truncated. Set it
to the value of the Marker element in the response that
you received to indicate where the next call should start.public ListEntitiesForPolicyRequest withMarker(String marker)
Marker element in the response that
you received to indicate where the next call should start.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 320
Pattern: [\u0020-\u00FF]+
marker - Use this parameter only when paginating results and only after you
receive a response indicating that the results are truncated. Set it
to the value of the Marker element in the response that
you received to indicate where the next call should start.public Integer getMaxItems()
IsTruncated response element
is true. This parameter is optional. If you do not
include it, it defaults to 100. Note that IAM might return fewer
results, even when there are more results available. In that case, the
IsTruncated response element returns true
and Marker contains a value to include in the subsequent
call that tells the service where to continue from.
Constraints:
Range: 1 - 1000
IsTruncated response element
is true. This parameter is optional. If you do not
include it, it defaults to 100. Note that IAM might return fewer
results, even when there are more results available. In that case, the
IsTruncated response element returns true
and Marker contains a value to include in the subsequent
call that tells the service where to continue from.
public void setMaxItems(Integer maxItems)
IsTruncated response element
is true. This parameter is optional. If you do not
include it, it defaults to 100. Note that IAM might return fewer
results, even when there are more results available. In that case, the
IsTruncated response element returns true
and Marker contains a value to include in the subsequent
call that tells the service where to continue from.
Constraints:
Range: 1 - 1000
maxItems - Use this only when paginating results to indicate the maximum number
of items you want in the response. If additional items exist beyond
the maximum you specify, the IsTruncated response element
is true. This parameter is optional. If you do not
include it, it defaults to 100. Note that IAM might return fewer
results, even when there are more results available. In that case, the
IsTruncated response element returns true
and Marker contains a value to include in the subsequent
call that tells the service where to continue from.
public ListEntitiesForPolicyRequest withMaxItems(Integer maxItems)
IsTruncated response element
is true. This parameter is optional. If you do not
include it, it defaults to 100. Note that IAM might return fewer
results, even when there are more results available. In that case, the
IsTruncated response element returns true
and Marker contains a value to include in the subsequent
call that tells the service where to continue from.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 1000
maxItems - Use this only when paginating results to indicate the maximum number
of items you want in the response. If additional items exist beyond
the maximum you specify, the IsTruncated response element
is true. This parameter is optional. If you do not
include it, it defaults to 100. Note that IAM might return fewer
results, even when there are more results available. In that case, the
IsTruncated response element returns true
and Marker contains a value to include in the subsequent
call that tells the service where to continue from.
public String toString()
toString in class ObjectObject.toString()public ListEntitiesForPolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.