@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetFederationTokenRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
GetFederationTokenRequest()
Default constructor for GetFederationTokenRequest object.
|
GetFederationTokenRequest(String name)
Constructs a new GetFederationTokenRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
GetFederationTokenRequest |
clone() |
boolean |
equals(Object obj) |
Integer |
getDurationSeconds()
The duration, in seconds, that the session should last.
|
String |
getName()
The name of the federated user.
|
String |
getPolicy()
An IAM policy in JSON format.
|
int |
hashCode() |
void |
setDurationSeconds(Integer durationSeconds)
The duration, in seconds, that the session should last.
|
void |
setName(String name)
The name of the federated user.
|
void |
setPolicy(String policy)
An IAM policy in JSON format.
|
String |
toString()
Returns a string representation of this object.
|
GetFederationTokenRequest |
withDurationSeconds(Integer durationSeconds)
The duration, in seconds, that the session should last.
|
GetFederationTokenRequest |
withName(String name)
The name of the federated user.
|
GetFederationTokenRequest |
withPolicy(String policy)
An IAM policy in JSON format.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic GetFederationTokenRequest()
public GetFederationTokenRequest(String name)
name - The name of the federated user. The name is used as an identifier for the temporary security credentials
(such as Bob). For example, you can reference the federated user name in a resource-based
policy, such as in an Amazon S3 bucket policy.
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
public void setName(String name)
The name of the federated user. The name is used as an identifier for the temporary security credentials (such as
Bob). For example, you can reference the federated user name in a resource-based policy, such as in
an Amazon S3 bucket policy.
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
name - The name of the federated user. The name is used as an identifier for the temporary security credentials
(such as Bob). For example, you can reference the federated user name in a resource-based
policy, such as in an Amazon S3 bucket policy.
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
public String getName()
The name of the federated user. The name is used as an identifier for the temporary security credentials (such as
Bob). For example, you can reference the federated user name in a resource-based policy, such as in
an Amazon S3 bucket policy.
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
Bob). For example, you can reference the federated user name in a resource-based
policy, such as in an Amazon S3 bucket policy.
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
public GetFederationTokenRequest withName(String name)
The name of the federated user. The name is used as an identifier for the temporary security credentials (such as
Bob). For example, you can reference the federated user name in a resource-based policy, such as in
an Amazon S3 bucket policy.
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
name - The name of the federated user. The name is used as an identifier for the temporary security credentials
(such as Bob). For example, you can reference the federated user name in a resource-based
policy, such as in an Amazon S3 bucket policy.
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
public void setPolicy(String policy)
An IAM policy in JSON format. You must pass an IAM permissions policy to GetFederationToken. When
you pass a policy to this operation, the resulting temporary credentials are defined by the intersection of your
IAM user policies and the policy that you pass. The passed policy defines the permissions of the federated
user. AWS allows the federated user's request only when both the attached policy and the IAM user policy
explicitly allow the federated user to perform the requested action. The passed policy cannot grant more
permissions than those that are defined in the IAM user policy.
The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list ( -ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.
The policy plaintext must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed
binary format with a separate limit. The PackedPolicySize response element indicates by percentage
how close to the upper size limit the policy is, where 100 percent is the maximum allowed size.
For more information about how permissions work, see Permissions for GetFederationToken.
policy - An IAM policy in JSON format. You must pass an IAM permissions policy to GetFederationToken.
When you pass a policy to this operation, the resulting temporary credentials are defined by the
intersection of your IAM user policies and the policy that you pass. The passed policy defines the
permissions of the federated user. AWS allows the federated user's request only when both the
attached policy and the IAM user policy explicitly allow the federated user to perform the requested
action. The passed policy cannot grant more permissions than those that are defined in the IAM user
policy.
The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list ( -ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.
The policy plaintext must be 2048 bytes or shorter. However, an internal conversion compresses it into a
packed binary format with a separate limit. The PackedPolicySize response element indicates
by percentage how close to the upper size limit the policy is, where 100 percent is the maximum allowed
size.
For more information about how permissions work, see Permissions for GetFederationToken.
public String getPolicy()
An IAM policy in JSON format. You must pass an IAM permissions policy to GetFederationToken. When
you pass a policy to this operation, the resulting temporary credentials are defined by the intersection of your
IAM user policies and the policy that you pass. The passed policy defines the permissions of the federated
user. AWS allows the federated user's request only when both the attached policy and the IAM user policy
explicitly allow the federated user to perform the requested action. The passed policy cannot grant more
permissions than those that are defined in the IAM user policy.
The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list ( -ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.
The policy plaintext must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed
binary format with a separate limit. The PackedPolicySize response element indicates by percentage
how close to the upper size limit the policy is, where 100 percent is the maximum allowed size.
For more information about how permissions work, see Permissions for GetFederationToken.
GetFederationToken.
When you pass a policy to this operation, the resulting temporary credentials are defined by the
intersection of your IAM user policies and the policy that you pass. The passed policy defines the
permissions of the federated user. AWS allows the federated user's request only when both the
attached policy and the IAM user policy explicitly allow the federated user to perform the requested
action. The passed policy cannot grant more permissions than those that are defined in the IAM user
policy.
The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list ( -ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.
The policy plaintext must be 2048 bytes or shorter. However, an internal conversion compresses it into a
packed binary format with a separate limit. The PackedPolicySize response element indicates
by percentage how close to the upper size limit the policy is, where 100 percent is the maximum allowed
size.
For more information about how permissions work, see Permissions for GetFederationToken.
public GetFederationTokenRequest withPolicy(String policy)
An IAM policy in JSON format. You must pass an IAM permissions policy to GetFederationToken. When
you pass a policy to this operation, the resulting temporary credentials are defined by the intersection of your
IAM user policies and the policy that you pass. The passed policy defines the permissions of the federated
user. AWS allows the federated user's request only when both the attached policy and the IAM user policy
explicitly allow the federated user to perform the requested action. The passed policy cannot grant more
permissions than those that are defined in the IAM user policy.
The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list ( -ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.
The policy plaintext must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed
binary format with a separate limit. The PackedPolicySize response element indicates by percentage
how close to the upper size limit the policy is, where 100 percent is the maximum allowed size.
For more information about how permissions work, see Permissions for GetFederationToken.
policy - An IAM policy in JSON format. You must pass an IAM permissions policy to GetFederationToken.
When you pass a policy to this operation, the resulting temporary credentials are defined by the
intersection of your IAM user policies and the policy that you pass. The passed policy defines the
permissions of the federated user. AWS allows the federated user's request only when both the
attached policy and the IAM user policy explicitly allow the federated user to perform the requested
action. The passed policy cannot grant more permissions than those that are defined in the IAM user
policy.
The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list ( -ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.
The policy plaintext must be 2048 bytes or shorter. However, an internal conversion compresses it into a
packed binary format with a separate limit. The PackedPolicySize response element indicates
by percentage how close to the upper size limit the policy is, where 100 percent is the maximum allowed
size.
For more information about how permissions work, see Permissions for GetFederationToken.
public void setDurationSeconds(Integer durationSeconds)
The duration, in seconds, that the session should last. Acceptable durations for federation sessions range from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the default. Sessions obtained using AWS account root user credentials are restricted to a maximum of 3,600 seconds (one hour). If the specified duration is longer than one hour, the session obtained by using root user credentials defaults to one hour.
durationSeconds - The duration, in seconds, that the session should last. Acceptable durations for federation sessions range
from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the
default. Sessions obtained using AWS account root user credentials are restricted to a maximum of 3,600
seconds (one hour). If the specified duration is longer than one hour, the session obtained by using root
user credentials defaults to one hour.public Integer getDurationSeconds()
The duration, in seconds, that the session should last. Acceptable durations for federation sessions range from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the default. Sessions obtained using AWS account root user credentials are restricted to a maximum of 3,600 seconds (one hour). If the specified duration is longer than one hour, the session obtained by using root user credentials defaults to one hour.
public GetFederationTokenRequest withDurationSeconds(Integer durationSeconds)
The duration, in seconds, that the session should last. Acceptable durations for federation sessions range from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the default. Sessions obtained using AWS account root user credentials are restricted to a maximum of 3,600 seconds (one hour). If the specified duration is longer than one hour, the session obtained by using root user credentials defaults to one hour.
durationSeconds - The duration, in seconds, that the session should last. Acceptable durations for federation sessions range
from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the
default. Sessions obtained using AWS account root user credentials are restricted to a maximum of 3,600
seconds (one hour). If the specified duration is longer than one hour, the session obtained by using root
user credentials defaults to one hour.public String toString()
toString in class ObjectObject.toString()public GetFederationTokenRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2019. All rights reserved.