Class Session

    • Method Detail

      • sessionId

        public final String sessionId()

        The ID of the session.

        Returns:
        The ID of the session.
      • target

        public final String target()

        The managed node that the Session Manager session connected to.

        Returns:
        The managed node that the Session Manager session connected to.
      • status

        public final SessionStatus status()

        The status of the session. For example, "Connected" or "Terminated".

        If the service returns an enum value that is not available in the current SDK version, status will return SessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the session. For example, "Connected" or "Terminated".
        See Also:
        SessionStatus
      • statusAsString

        public final String statusAsString()

        The status of the session. For example, "Connected" or "Terminated".

        If the service returns an enum value that is not available in the current SDK version, status will return SessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the session. For example, "Connected" or "Terminated".
        See Also:
        SessionStatus
      • startDate

        public final Instant startDate()

        The date and time, in ISO-8601 Extended format, when the session began.

        Returns:
        The date and time, in ISO-8601 Extended format, when the session began.
      • endDate

        public final Instant endDate()

        The date and time, in ISO-8601 Extended format, when the session was terminated.

        Returns:
        The date and time, in ISO-8601 Extended format, when the session was terminated.
      • documentName

        public final String documentName()

        The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example, SSM-SessionManagerRunShell.

        Returns:
        The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example, SSM-SessionManagerRunShell.
      • owner

        public final String owner()

        The ID of the Amazon Web Services user that started the session.

        Returns:
        The ID of the Amazon Web Services user that started the session.
      • reason

        public final String reason()

        The reason for connecting to the instance.

        Returns:
        The reason for connecting to the instance.
      • details

        public final String details()

        Reserved for future use.

        Returns:
        Reserved for future use.
      • outputUrl

        public final SessionManagerOutputUrl outputUrl()

        Reserved for future use.

        Returns:
        Reserved for future use.
      • maxSessionDuration

        public final String maxSessionDuration()

        The maximum duration of a session before it terminates.

        Returns:
        The maximum duration of a session before it terminates.
      • serializableBuilderClass

        public static Class<? extends Session.Builder> serializableBuilderClass()
      • 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)