Class AssumedRole

    • Method Detail

      • accessKeyId

        public final String accessKeyId()

        The Amazon Web Services access key ID that identifies the credentials.

        Returns:
        The Amazon Web Services access key ID that identifies the credentials.
      • accountId

        public final String accountId()

        The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.

        Returns:
        The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the entity that was used to get the credentials.

        Returns:
        The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
      • principalId

        public final String principalId()

        The unique identifier for the entity that was used to get the credentials.

        Returns:
        The unique identifier for the entity that was used to get the credentials.
      • sessionContext

        public final SessionContext sessionContext()

        The details of the session that was created for the credentials, including the entity that issued the session.

        Returns:
        The details of the session that was created for the credentials, including the entity that issued the session.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)