public static interface Finding.Builder extends SdkPojo, CopyableBuilder<Finding.Builder,Finding>
| Modifier and Type | Method and Description |
|---|---|
Finding.Builder |
action(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
|
Finding.Builder |
action(String... action)
The action in the analyzed policy statement that an external principal has permission to use.
|
Finding.Builder |
analyzedAt(Instant analyzedAt)
The time at which the resource was analyzed.
|
Finding.Builder |
condition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
|
Finding.Builder |
createdAt(Instant createdAt)
The time at which the finding was generated.
|
Finding.Builder |
error(String error)
An error.
|
Finding.Builder |
id(String id)
The ID of the finding.
|
Finding.Builder |
isPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
|
Finding.Builder |
principal(Map<String,String> principal)
The external principal that access to a resource within the zone of trust.
|
Finding.Builder |
resource(String resource)
The resource that an external principal has access to.
|
Finding.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
|
Finding.Builder |
resourceType(ResourceType resourceType)
The type of the resource identified in the finding.
|
Finding.Builder |
resourceType(String resourceType)
The type of the resource identified in the finding.
|
Finding.Builder |
sources(Collection<FindingSource> sources)
The sources of the finding.
|
Finding.Builder |
sources(Consumer<FindingSource.Builder>... sources)
The sources of the finding.
|
Finding.Builder |
sources(FindingSource... sources)
The sources of the finding.
|
Finding.Builder |
status(FindingStatus status)
The current status of the finding.
|
Finding.Builder |
status(String status)
The current status of the finding.
|
Finding.Builder |
updatedAt(Instant updatedAt)
The time at which the finding was updated.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFinding.Builder id(String id)
The ID of the finding.
id - The ID of the finding.Finding.Builder principal(Map<String,String> principal)
The external principal that access to a resource within the zone of trust.
principal - The external principal that access to a resource within the zone of trust.Finding.Builder action(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
action - The action in the analyzed policy statement that an external principal has permission to use.Finding.Builder action(String... action)
The action in the analyzed policy statement that an external principal has permission to use.
action - The action in the analyzed policy statement that an external principal has permission to use.Finding.Builder resource(String resource)
The resource that an external principal has access to.
resource - The resource that an external principal has access to.Finding.Builder isPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
isPublic - Indicates whether the policy that generated the finding allows public access to the resource.Finding.Builder resourceType(String resourceType)
The type of the resource identified in the finding.
resourceType - The type of the resource identified in the finding.ResourceType,
ResourceTypeFinding.Builder resourceType(ResourceType resourceType)
The type of the resource identified in the finding.
resourceType - The type of the resource identified in the finding.ResourceType,
ResourceTypeFinding.Builder condition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
condition - The condition in the analyzed policy statement that resulted in a finding.Finding.Builder createdAt(Instant createdAt)
The time at which the finding was generated.
createdAt - The time at which the finding was generated.Finding.Builder analyzedAt(Instant analyzedAt)
The time at which the resource was analyzed.
analyzedAt - The time at which the resource was analyzed.Finding.Builder updatedAt(Instant updatedAt)
The time at which the finding was updated.
updatedAt - The time at which the finding was updated.Finding.Builder status(String status)
The current status of the finding.
status - The current status of the finding.FindingStatus,
FindingStatusFinding.Builder status(FindingStatus status)
The current status of the finding.
status - The current status of the finding.FindingStatus,
FindingStatusFinding.Builder resourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
resourceOwnerAccount - The Amazon Web Services account ID that owns the resource.Finding.Builder error(String error)
An error.
error - An error.Finding.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.
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.Finding.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.
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.Finding.Builder sources(Consumer<FindingSource.Builder>... 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 theFindingSource.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.
sources - a consumer that will call methods on
FindingSource.Builder#sources(java.util.Collection) Copyright © 2022. All rights reserved.