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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccessPreviewFinding.Builderaction(String... action)The action in the analyzed policy statement that an external principal has permission to perform.AccessPreviewFinding.Builderaction(Collection<String> action)The action in the analyzed policy statement that an external principal has permission to perform.AccessPreviewFinding.BuilderchangeType(String changeType)Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.AccessPreviewFinding.BuilderchangeType(FindingChangeType changeType)Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.AccessPreviewFinding.Buildercondition(Map<String,String> condition)The condition in the analyzed policy statement that resulted in a finding.AccessPreviewFinding.BuildercreatedAt(Instant createdAt)The time at which the access preview finding was created.AccessPreviewFinding.Buildererror(String error)An error.AccessPreviewFinding.BuilderexistingFindingId(String existingFindingId)The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.AccessPreviewFinding.BuilderexistingFindingStatus(String existingFindingStatus)The existing status of the finding, provided only for existing findings.AccessPreviewFinding.BuilderexistingFindingStatus(FindingStatus existingFindingStatus)The existing status of the finding, provided only for existing findings.AccessPreviewFinding.Builderid(String id)The ID of the access preview finding.AccessPreviewFinding.BuilderisPublic(Boolean isPublic)Indicates whether the policy that generated the finding allows public access to the resource.AccessPreviewFinding.Builderprincipal(Map<String,String> principal)The external principal that has access to a resource within the zone of trust.AccessPreviewFinding.Builderresource(String resource)The resource that an external principal has access to.AccessPreviewFinding.BuilderresourceOwnerAccount(String resourceOwnerAccount)The Amazon Web Services account ID that owns the resource.AccessPreviewFinding.BuilderresourceType(String resourceType)The type of the resource that can be accessed in the finding.AccessPreviewFinding.BuilderresourceType(ResourceType resourceType)The type of the resource that can be accessed in the finding.AccessPreviewFinding.Buildersources(Collection<FindingSource> sources)The sources of the finding.AccessPreviewFinding.Buildersources(Consumer<FindingSource.Builder>... sources)The sources of the finding.AccessPreviewFinding.Buildersources(FindingSource... sources)The sources of the finding.AccessPreviewFinding.Builderstatus(String status)The preview status of the finding.AccessPreviewFinding.Builderstatus(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 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
Changedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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
Changedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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
Changedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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
Changedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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
Changedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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, aChangedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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
Changedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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, aChangedfinding with preview statusResolvedand existing statusActiveindicates the existingActivefinding would becomeResolvedas 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.
-
sources
AccessPreviewFinding.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.Builderavoiding the need to create one manually viaFindingSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sources(List.) - 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:
#sources(java.util.Collection)
-
-