Interface AccessPreviewFinding.Builder

    • Method Detail

      • id

        AccessPreviewFinding.Builder id​(String id)

        The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.

        Parameters:
        id - The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • existingFindingId

        AccessPreviewFinding.Builder existingFindingId​(String existingFindingId)

        The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.

        Parameters:
        existingFindingId - The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • existingFindingStatus

        AccessPreviewFinding.Builder existingFindingStatus​(String existingFindingStatus)

        The existing status of the finding, provided only for existing findings.

        Parameters:
        existingFindingStatus - The existing status of the finding, provided only for existing findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingStatus, FindingStatus
      • existingFindingStatus

        AccessPreviewFinding.Builder existingFindingStatus​(FindingStatus existingFindingStatus)

        The existing status of the finding, provided only for existing findings.

        Parameters:
        existingFindingStatus - The existing status of the finding, provided only for existing findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingStatus, FindingStatus
      • principal

        AccessPreviewFinding.Builder principal​(Map<String,​String> principal)

        The external principal that has access to a resource within the zone of trust.

        Parameters:
        principal - The external principal that has access to a resource within the zone of trust.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • action

        AccessPreviewFinding.Builder action​(Collection<String> action)

        The action in the analyzed policy statement that an external principal has permission to perform.

        Parameters:
        action - The action in the analyzed policy statement that an external principal has permission to perform.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • action

        AccessPreviewFinding.Builder action​(String... action)

        The action in the analyzed policy statement that an external principal has permission to perform.

        Parameters:
        action - The action in the analyzed policy statement that an external principal has permission to perform.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • condition

        AccessPreviewFinding.Builder condition​(Map<String,​String> condition)

        The condition in the analyzed policy statement that resulted in a finding.

        Parameters:
        condition - The condition in the analyzed policy statement that resulted in a finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resource

        AccessPreviewFinding.Builder resource​(String resource)

        The resource that an external principal has access to. This is the resource associated with the access preview.

        Parameters:
        resource - The resource that an external principal has access to. This is the resource associated with the access preview.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isPublic

        AccessPreviewFinding.Builder isPublic​(Boolean isPublic)

        Indicates whether the policy that generated the finding allows public access to the resource.

        Parameters:
        isPublic - Indicates whether the policy that generated the finding allows public access to the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceType

        AccessPreviewFinding.Builder resourceType​(String resourceType)

        The type of the resource that can be accessed in the finding.

        Parameters:
        resourceType - The type of the resource that can be accessed in the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • resourceType

        AccessPreviewFinding.Builder resourceType​(ResourceType resourceType)

        The type of the resource that can be accessed in the finding.

        Parameters:
        resourceType - The type of the resource that can be accessed in the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • createdAt

        AccessPreviewFinding.Builder createdAt​(Instant createdAt)

        The time at which the access preview finding was created.

        Parameters:
        createdAt - The time at which the access preview finding was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • changeType

        AccessPreviewFinding.Builder changeType​(String changeType)

        Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

        • New - The finding is for newly-introduced access.

        • Unchanged - The preview finding is an existing finding that would remain unchanged.

        • Changed - The preview finding is an existing finding with a change in status.

        For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

        Parameters:
        changeType - Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

        • New - The finding is for newly-introduced access.

        • Unchanged - The preview finding is an existing finding that would remain unchanged.

        • Changed - The preview finding is an existing finding with a change in status.

        For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingChangeType, FindingChangeType
      • changeType

        AccessPreviewFinding.Builder changeType​(FindingChangeType changeType)

        Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

        • New - The finding is for newly-introduced access.

        • Unchanged - The preview finding is an existing finding that would remain unchanged.

        • Changed - The preview finding is an existing finding with a change in status.

        For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

        Parameters:
        changeType - Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

        • New - The finding is for newly-introduced access.

        • Unchanged - The preview finding is an existing finding that would remain unchanged.

        • Changed - The preview finding is an existing finding with a change in status.

        For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingChangeType, FindingChangeType
      • status

        AccessPreviewFinding.Builder status​(String status)

        The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

        Parameters:
        status - The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingStatus, FindingStatus
      • status

        AccessPreviewFinding.Builder status​(FindingStatus status)

        The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.

        Parameters:
        status - The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingStatus, FindingStatus
      • resourceOwnerAccount

        AccessPreviewFinding.Builder resourceOwnerAccount​(String resourceOwnerAccount)

        The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.

        Parameters:
        resourceOwnerAccount - The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • error

        AccessPreviewFinding.Builder error​(String error)

        An error.

        Parameters:
        error - An error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sources

        AccessPreviewFinding.Builder sources​(Collection<FindingSource> sources)

        The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.

        Parameters:
        sources - The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sources

        AccessPreviewFinding.Builder sources​(FindingSource... sources)

        The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.

        Parameters:
        sources - The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.