Class GetFindingV2Response

    • Method Detail

      • analyzedAt

        public final Instant analyzedAt()

        The time at which the resource-based policy or IAM entity that generated the finding was analyzed.

        Returns:
        The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
      • createdAt

        public final Instant createdAt()

        The time at which the finding was created.

        Returns:
        The time at which the finding was created.
      • error

        public final String error()

        An error.

        Returns:
        An error.
      • id

        public final String id()

        The ID of the finding to retrieve.

        Returns:
        The ID of the finding to retrieve.
      • nextToken

        public final String nextToken()

        A token used for pagination of results returned.

        Returns:
        A token used for pagination of results returned.
      • resource

        public final String resource()

        The resource that generated the finding.

        Returns:
        The resource that generated the finding.
      • resourceType

        public final ResourceType resourceType()

        The type of the resource identified in the finding.

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

        Returns:
        The type of the resource identified in the finding.
        See Also:
        ResourceType
      • resourceTypeAsString

        public final String resourceTypeAsString()

        The type of the resource identified in the finding.

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

        Returns:
        The type of the resource identified in the finding.
        See Also:
        ResourceType
      • resourceOwnerAccount

        public final String resourceOwnerAccount()

        Tye Amazon Web Services account ID that owns the resource.

        Returns:
        Tye Amazon Web Services account ID that owns the resource.
      • statusAsString

        public final String statusAsString()

        The status of the finding.

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

        Returns:
        The status of the finding.
        See Also:
        FindingStatus
      • updatedAt

        public final Instant updatedAt()

        The time at which the finding was updated.

        Returns:
        The time at which the finding was updated.
      • hasFindingDetails

        public final boolean hasFindingDetails()
        For responses, this returns true if the service returned a value for the FindingDetails property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • findingDetails

        public final List<FindingDetails> findingDetails()

        A localized message that explains the finding and provides guidance on how to address it.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasFindingDetails() method.

        Returns:
        A localized message that explains the finding and provides guidance on how to address it.
      • findingType

        public final FindingType findingType()

        The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.

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

        Returns:
        The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.
        See Also:
        FindingType
      • findingTypeAsString

        public final String findingTypeAsString()

        The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.

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

        Returns:
        The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.
        See Also:
        FindingType
      • 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