Interface AccessPreviewFinding.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AccessPreviewFinding.Builder,
,AccessPreviewFinding> SdkBuilder<AccessPreviewFinding.Builder,
,AccessPreviewFinding> SdkPojo
- Enclosing class:
AccessPreviewFinding
-
Method Summary
Modifier and TypeMethodDescriptionThe action in the analyzed policy statement that an external principal has permission to perform.action
(Collection<String> action) The action in the analyzed policy statement that an external principal has permission to perform.changeType
(String changeType) Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.changeType
(FindingChangeType changeType) Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.The condition in the analyzed policy statement that resulted in a finding.The time at which the access preview finding was created.An error.existingFindingId
(String existingFindingId) The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.existingFindingStatus
(String existingFindingStatus) The existing status of the finding, provided only for existing findings.existingFindingStatus
(FindingStatus existingFindingStatus) The existing status of the finding, provided only for existing findings.The ID of the access preview finding.Indicates whether the policy that generated the finding allows public access to the resource.The external principal that has access to a resource within the zone of trust.The resource that an external principal has access to.resourceOwnerAccount
(String resourceOwnerAccount) The Amazon Web Services account ID that owns the resource.resourceType
(String resourceType) The type of the resource that can be accessed in the finding.resourceType
(ResourceType resourceType) The type of the resource that can be accessed in the finding.sources
(Collection<FindingSource> sources) The sources of the finding.sources
(Consumer<FindingSource.Builder>... sources) The sources of the finding.sources
(FindingSource... sources) The sources of the finding.The preview status of the finding.status
(FindingStatus status) The preview status of the finding.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
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
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
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
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
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
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
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
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 statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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 statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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 statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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 statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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 statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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, aChanged
finding with preview statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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 statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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, aChanged
finding with preview statusResolved
and existing statusActive
indicates the existingActive
finding would becomeResolved
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
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 theFindingSource.Builder
avoiding the need to create one manually viaFindingSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosources(List<FindingSource>)
.- Parameters:
sources
- a consumer that will call methods onFindingSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-