Interface GetScopedCredentialsRequest.Builder

  • Method Details

    • policy

      An IAM policy in JSON format that you want to use as a scope down policy.

      A request must provide at least one of Policy or DurationSeconds. Both parameters are optional individually, but you must specify at least one of them.

      The resulting session's permissions are the intersection of the calling session's existing permissions and this scope down policy. You cannot use this scope down policy to grant more permissions than the calling session already has.

      The plaintext of the scope down policy cannot exceed 2,048 characters. The JSON policy characters can be any ASCII character from the space character to the end of the valid character list ( through ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.

      An internal conversion compresses the inline scope down policy into a packed binary format that has a separate limit. If the packed policy exceeds this limit, the request fails with PackedPolicyTooLarge.

      If the document is not valid IAM policy JSON, the request fails with MalformedPolicyDocument.

      Parameters:
      policy - An IAM policy in JSON format that you want to use as a scope down policy.

      A request must provide at least one of Policy or DurationSeconds. Both parameters are optional individually, but you must specify at least one of them.

      The resulting session's permissions are the intersection of the calling session's existing permissions and this scope down policy. You cannot use this scope down policy to grant more permissions than the calling session already has.

      The plaintext of the scope down policy cannot exceed 2,048 characters. The JSON policy characters can be any ASCII character from the space character to the end of the valid character list ( through ÿ). It can also include the tab ( ), linefeed ( ), and carriage return ( ) characters.

      An internal conversion compresses the inline scope down policy into a packed binary format that has a separate limit. If the packed policy exceeds this limit, the request fails with PackedPolicyTooLarge.

      If the document is not valid IAM policy JSON, the request fails with MalformedPolicyDocument.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • durationSeconds

      GetScopedCredentialsRequest.Builder durationSeconds(Integer durationSeconds)

      The duration, in seconds, of the resulting scoped down credentials. The value can range from 1 second to 129,600 seconds (36 hours).

      If you do not specify this value, the scoped down credentials will inherit the calling session's expiration time.

      Parameters:
      durationSeconds - The duration, in seconds, of the resulting scoped down credentials. The value can range from 1 second to 129,600 seconds (36 hours).

      If you do not specify this value, the scoped down credentials will inherit the calling session's expiration time.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minimumSessionTokenSize

      GetScopedCredentialsRequest.Builder minimumSessionTokenSize(Integer minimumSessionTokenSize)
      Sets the value of the MinimumSessionTokenSize property for this object.
      Parameters:
      minimumSessionTokenSize - The new value for the MinimumSessionTokenSize property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopedSessionDescription

      GetScopedCredentialsRequest.Builder scopedSessionDescription(String scopedSessionDescription)

      A caller-supplied description of the scoped session. The value cannot exceed 256 characters. This description is logged to CloudTrail for the request, so you can use it to record the purpose of the scoped session.

      Parameters:
      scopedSessionDescription - A caller-supplied description of the scoped session. The value cannot exceed 256 characters. This description is logged to CloudTrail for the request, so you can use it to record the purpose of the scoped session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetScopedCredentialsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.