@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessPreviewFinding extends Object implements Serializable, Cloneable, StructuredPojo
An access preview finding generated by the access preview.
Constructor and Description |
---|
AccessPreviewFinding() |
Modifier and Type | Method and Description |
---|---|
AccessPreviewFinding |
addConditionEntry(String key,
String value)
Add a single Condition entry
|
AccessPreviewFinding |
addPrincipalEntry(String key,
String value)
Add a single Principal entry
|
AccessPreviewFinding |
clearConditionEntries()
Removes all the entries added into Condition.
|
AccessPreviewFinding |
clearPrincipalEntries()
Removes all the entries added into Principal.
|
AccessPreviewFinding |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAction()
The action in the analyzed policy statement that an external principal has permission to perform.
|
String |
getChangeType()
Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
|
Map<String,String> |
getCondition()
The condition in the analyzed policy statement that resulted in a finding.
|
Date |
getCreatedAt()
The time at which the access preview finding was created.
|
String |
getError()
An error.
|
String |
getExistingFindingId()
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
|
String |
getExistingFindingStatus()
The existing status of the finding, provided only for existing findings.
|
String |
getId()
The ID of the access preview finding.
|
Boolean |
getIsPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
|
Map<String,String> |
getPrincipal()
The external principal that has access to a resource within the zone of trust.
|
String |
getResource()
The resource that an external principal has access to.
|
String |
getResourceOwnerAccount()
The Amazon Web Services account ID that owns the resource.
|
String |
getResourceType()
The type of the resource that can be accessed in the finding.
|
List<FindingSource> |
getSources()
The sources of the finding.
|
String |
getStatus()
The preview status of the finding.
|
int |
hashCode() |
Boolean |
isPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to perform.
|
void |
setChangeType(String changeType)
Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
|
void |
setCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
|
void |
setCreatedAt(Date createdAt)
The time at which the access preview finding was created.
|
void |
setError(String error)
An error.
|
void |
setExistingFindingId(String existingFindingId)
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
|
void |
setExistingFindingStatus(String existingFindingStatus)
The existing status of the finding, provided only for existing findings.
|
void |
setId(String id)
The ID of the access preview finding.
|
void |
setIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
|
void |
setPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
|
void |
setResource(String resource)
The resource that an external principal has access to.
|
void |
setResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
|
void |
setResourceType(String resourceType)
The type of the resource that can be accessed in the finding.
|
void |
setSources(Collection<FindingSource> sources)
The sources of the finding.
|
void |
setStatus(String status)
The preview status of the finding.
|
String |
toString()
Returns a string representation of this object.
|
AccessPreviewFinding |
withAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to perform.
|
AccessPreviewFinding |
withAction(String... action)
The action in the analyzed policy statement that an external principal has permission to perform.
|
AccessPreviewFinding |
withChangeType(FindingChangeType changeType)
Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
|
AccessPreviewFinding |
withChangeType(String changeType)
Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
|
AccessPreviewFinding |
withCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
|
AccessPreviewFinding |
withCreatedAt(Date createdAt)
The time at which the access preview finding was created.
|
AccessPreviewFinding |
withError(String error)
An error.
|
AccessPreviewFinding |
withExistingFindingId(String existingFindingId)
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
|
AccessPreviewFinding |
withExistingFindingStatus(FindingStatus existingFindingStatus)
The existing status of the finding, provided only for existing findings.
|
AccessPreviewFinding |
withExistingFindingStatus(String existingFindingStatus)
The existing status of the finding, provided only for existing findings.
|
AccessPreviewFinding |
withId(String id)
The ID of the access preview finding.
|
AccessPreviewFinding |
withIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
|
AccessPreviewFinding |
withPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
|
AccessPreviewFinding |
withResource(String resource)
The resource that an external principal has access to.
|
AccessPreviewFinding |
withResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
|
AccessPreviewFinding |
withResourceType(ResourceType resourceType)
The type of the resource that can be accessed in the finding.
|
AccessPreviewFinding |
withResourceType(String resourceType)
The type of the resource that can be accessed in the finding.
|
AccessPreviewFinding |
withSources(Collection<FindingSource> sources)
The sources of the finding.
|
AccessPreviewFinding |
withSources(FindingSource... sources)
The sources of the finding.
|
AccessPreviewFinding |
withStatus(FindingStatus status)
The preview status of the finding.
|
AccessPreviewFinding |
withStatus(String status)
The preview status of the finding.
|
public void setId(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.
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.public String getId()
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.
public AccessPreviewFinding withId(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.
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.public void setExistingFindingId(String existingFindingId)
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
existingFindingId
- The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.public String getExistingFindingId()
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
public AccessPreviewFinding withExistingFindingId(String existingFindingId)
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
existingFindingId
- The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.public void setExistingFindingStatus(String existingFindingStatus)
The existing status of the finding, provided only for existing findings.
existingFindingStatus
- The existing status of the finding, provided only for existing findings.FindingStatus
public String getExistingFindingStatus()
The existing status of the finding, provided only for existing findings.
FindingStatus
public AccessPreviewFinding withExistingFindingStatus(String existingFindingStatus)
The existing status of the finding, provided only for existing findings.
existingFindingStatus
- The existing status of the finding, provided only for existing findings.FindingStatus
public AccessPreviewFinding withExistingFindingStatus(FindingStatus existingFindingStatus)
The existing status of the finding, provided only for existing findings.
existingFindingStatus
- The existing status of the finding, provided only for existing findings.FindingStatus
public Map<String,String> getPrincipal()
The external principal that has access to a resource within the zone of trust.
public void setPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
principal
- The external principal that has access to a resource within the zone of trust.public AccessPreviewFinding withPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
principal
- The external principal that has access to a resource within the zone of trust.public AccessPreviewFinding addPrincipalEntry(String key, String value)
public AccessPreviewFinding clearPrincipalEntries()
public List<String> getAction()
The action in the analyzed policy statement that an external principal has permission to perform.
public void setAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to perform.
action
- The action in the analyzed policy statement that an external principal has permission to perform.public AccessPreviewFinding withAction(String... action)
The action in the analyzed policy statement that an external principal has permission to perform.
NOTE: This method appends the values to the existing list (if any). Use
setAction(java.util.Collection)
or withAction(java.util.Collection)
if you want to override the
existing values.
action
- The action in the analyzed policy statement that an external principal has permission to perform.public AccessPreviewFinding withAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to perform.
action
- The action in the analyzed policy statement that an external principal has permission to perform.public Map<String,String> getCondition()
The condition in the analyzed policy statement that resulted in a finding.
public void setCondition(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.public AccessPreviewFinding withCondition(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.public AccessPreviewFinding addConditionEntry(String key, String value)
public AccessPreviewFinding clearConditionEntries()
public void setResource(String resource)
The resource that an external principal has access to. This is the resource associated with the access preview.
resource
- The resource that an external principal has access to. This is the resource associated with the access
preview.public String getResource()
The resource that an external principal has access to. This is the resource associated with the access preview.
public AccessPreviewFinding withResource(String resource)
The resource that an external principal has access to. This is the resource associated with the access preview.
resource
- The resource that an external principal has access to. This is the resource associated with the access
preview.public void setIsPublic(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.public Boolean getIsPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
public AccessPreviewFinding withIsPublic(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.public Boolean isPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
public void setResourceType(String resourceType)
The type of the resource that can be accessed in the finding.
resourceType
- The type of the resource that can be accessed in the finding.ResourceType
public String getResourceType()
The type of the resource that can be accessed in the finding.
ResourceType
public AccessPreviewFinding withResourceType(String resourceType)
The type of the resource that can be accessed in the finding.
resourceType
- The type of the resource that can be accessed in the finding.ResourceType
public AccessPreviewFinding withResourceType(ResourceType resourceType)
The type of the resource that can be accessed in the finding.
resourceType
- The type of the resource that can be accessed in the finding.ResourceType
public void setCreatedAt(Date createdAt)
The time at which the access preview finding was created.
createdAt
- The time at which the access preview finding was created.public Date getCreatedAt()
The time at which the access preview finding was created.
public AccessPreviewFinding withCreatedAt(Date createdAt)
The time at which the access preview finding was created.
createdAt
- The time at which the access preview finding was created.public void setChangeType(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.
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.
FindingChangeType
public String getChangeType()
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.
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.
FindingChangeType
public AccessPreviewFinding withChangeType(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.
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.
FindingChangeType
public AccessPreviewFinding withChangeType(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.
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.
FindingChangeType
public void setStatus(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.
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.FindingStatus
public String getStatus()
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.
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.FindingStatus
public AccessPreviewFinding withStatus(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.
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.FindingStatus
public AccessPreviewFinding withStatus(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.
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.FindingStatus
public void setResourceOwnerAccount(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.
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.public String getResourceOwnerAccount()
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.
public AccessPreviewFinding withResourceOwnerAccount(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.
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.public void setError(String error)
An error.
error
- An error.public String getError()
An error.
public AccessPreviewFinding withError(String error)
An error.
error
- An error.public List<FindingSource> getSources()
The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
public void setSources(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.public AccessPreviewFinding withSources(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.
NOTE: This method appends the values to the existing list (if any). Use
setSources(java.util.Collection)
or withSources(java.util.Collection)
if you want to override
the existing values.
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.public AccessPreviewFinding withSources(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.public String toString()
toString
in class Object
Object.toString()
public AccessPreviewFinding clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.