Interface AccessPreviewFinding.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AccessPreviewFinding.Builder,AccessPreviewFinding>, SdkBuilder<AccessPreviewFinding.Builder,AccessPreviewFinding>, SdkPojo
Enclosing class:
AccessPreviewFinding

public static interface AccessPreviewFinding.Builder extends SdkPojo, CopyableBuilder<AccessPreviewFinding.Builder,AccessPreviewFinding>
  • Method Details

    • 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:
    • 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:
    • 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

      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

      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

      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

      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

      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

      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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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

      An error.

      Parameters:
      error - An error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      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

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

      This is a convenience method that creates an instance of the FindingSource.Builder avoiding the need to create one manually via FindingSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sources(List<FindingSource>).

      Parameters:
      sources - a consumer that will call methods on FindingSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: