/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An access preview finding generated by the access preview.See
* Also:
AWS
* API Reference
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.
*/ inline const Aws::String& GetId() const{ return m_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.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *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.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *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.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *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.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *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.
*/ inline AccessPreviewFinding& WithId(const Aws::String& value) { SetId(value); return *this;} /** *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.
*/ inline AccessPreviewFinding& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *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.
*/ inline AccessPreviewFinding& WithId(const char* value) { SetId(value); return *this;} /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline const Aws::String& GetExistingFindingId() const{ return m_existingFindingId; } /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline bool ExistingFindingIdHasBeenSet() const { return m_existingFindingIdHasBeenSet; } /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline void SetExistingFindingId(const Aws::String& value) { m_existingFindingIdHasBeenSet = true; m_existingFindingId = value; } /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline void SetExistingFindingId(Aws::String&& value) { m_existingFindingIdHasBeenSet = true; m_existingFindingId = std::move(value); } /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline void SetExistingFindingId(const char* value) { m_existingFindingIdHasBeenSet = true; m_existingFindingId.assign(value); } /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline AccessPreviewFinding& WithExistingFindingId(const Aws::String& value) { SetExistingFindingId(value); return *this;} /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline AccessPreviewFinding& WithExistingFindingId(Aws::String&& value) { SetExistingFindingId(std::move(value)); return *this;} /** *The existing ID of the finding in IAM Access Analyzer, provided only for * existing findings.
*/ inline AccessPreviewFinding& WithExistingFindingId(const char* value) { SetExistingFindingId(value); return *this;} /** *The existing status of the finding, provided only for existing findings.
*/ inline const FindingStatus& GetExistingFindingStatus() const{ return m_existingFindingStatus; } /** *The existing status of the finding, provided only for existing findings.
*/ inline bool ExistingFindingStatusHasBeenSet() const { return m_existingFindingStatusHasBeenSet; } /** *The existing status of the finding, provided only for existing findings.
*/ inline void SetExistingFindingStatus(const FindingStatus& value) { m_existingFindingStatusHasBeenSet = true; m_existingFindingStatus = value; } /** *The existing status of the finding, provided only for existing findings.
*/ inline void SetExistingFindingStatus(FindingStatus&& value) { m_existingFindingStatusHasBeenSet = true; m_existingFindingStatus = std::move(value); } /** *The existing status of the finding, provided only for existing findings.
*/ inline AccessPreviewFinding& WithExistingFindingStatus(const FindingStatus& value) { SetExistingFindingStatus(value); return *this;} /** *The existing status of the finding, provided only for existing findings.
*/ inline AccessPreviewFinding& WithExistingFindingStatus(FindingStatus&& value) { SetExistingFindingStatus(std::move(value)); return *this;} /** *The external principal that has access to a resource within the zone of * trust.
*/ inline const Aws::MapThe external principal that has access to a resource within the zone of * trust.
*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *The external principal that has access to a resource within the zone of * trust.
*/ inline void SetPrincipal(const Aws::MapThe external principal that has access to a resource within the zone of * trust.
*/ inline void SetPrincipal(Aws::MapThe external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& WithPrincipal(const Aws::MapThe external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& WithPrincipal(Aws::MapThe external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& AddPrincipal(const Aws::String& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; } /** *The external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& AddPrincipal(Aws::String&& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; } /** *The external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& AddPrincipal(const Aws::String& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; } /** *The external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& AddPrincipal(Aws::String&& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), std::move(value)); return *this; } /** *The external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& AddPrincipal(const char* key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; } /** *The external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& AddPrincipal(Aws::String&& key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; } /** *The external principal that has access to a resource within the zone of * trust.
*/ inline AccessPreviewFinding& AddPrincipal(const char* key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; } /** *The action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline const Aws::VectorThe action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *The action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline void SetAction(const Aws::VectorThe action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline void SetAction(Aws::VectorThe action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline AccessPreviewFinding& WithAction(const Aws::VectorThe action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline AccessPreviewFinding& WithAction(Aws::VectorThe action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline AccessPreviewFinding& AddAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; } /** *The action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline AccessPreviewFinding& AddAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action.push_back(std::move(value)); return *this; } /** *The action in the analyzed policy statement that an external principal has * permission to perform.
*/ inline AccessPreviewFinding& AddAction(const char* value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline const Aws::MapThe condition in the analyzed policy statement that resulted in a * finding.
*/ inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline void SetCondition(const Aws::MapThe condition in the analyzed policy statement that resulted in a * finding.
*/ inline void SetCondition(Aws::MapThe condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& WithCondition(const Aws::MapThe condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& WithCondition(Aws::MapThe condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& AddCondition(const Aws::String& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& AddCondition(Aws::String&& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& AddCondition(const Aws::String& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& AddCondition(Aws::String&& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), std::move(value)); return *this; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& AddCondition(const char* key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& AddCondition(Aws::String&& key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; } /** *The condition in the analyzed policy statement that resulted in a * finding.
*/ inline AccessPreviewFinding& AddCondition(const char* key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; } /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline AccessPreviewFinding& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline AccessPreviewFinding& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *The resource that an external principal has access to. This is the resource * associated with the access preview.
*/ inline AccessPreviewFinding& WithResource(const char* value) { SetResource(value); return *this;} /** *Indicates whether the policy that generated the finding allows public access * to the resource.
*/ inline bool GetIsPublic() const{ return m_isPublic; } /** *Indicates whether the policy that generated the finding allows public access * to the resource.
*/ inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; } /** *Indicates whether the policy that generated the finding allows public access * to the resource.
*/ inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; } /** *Indicates whether the policy that generated the finding allows public access * to the resource.
*/ inline AccessPreviewFinding& WithIsPublic(bool value) { SetIsPublic(value); return *this;} /** *The type of the resource that can be accessed in the finding.
*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *The type of the resource that can be accessed in the finding.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of the resource that can be accessed in the finding.
*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of the resource that can be accessed in the finding.
*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of the resource that can be accessed in the finding.
*/ inline AccessPreviewFinding& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *The type of the resource that can be accessed in the finding.
*/ inline AccessPreviewFinding& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *The time at which the access preview finding was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The time at which the access preview finding was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The time at which the access preview finding was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The time at which the access preview finding was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The time at which the access preview finding was created.
*/ inline AccessPreviewFinding& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The time at which the access preview finding was created.
*/ inline AccessPreviewFinding& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
*/ inline const Aws::String& GetResourceOwnerAccount() const{ return m_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.
*/ inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; } /** *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.
*/ inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = value; } /** *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.
*/ inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::move(value); } /** *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.
*/ inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount.assign(value); } /** *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.
*/ inline AccessPreviewFinding& WithResourceOwnerAccount(const Aws::String& value) { SetResourceOwnerAccount(value); return *this;} /** *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.
*/ inline AccessPreviewFinding& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;} /** *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.
*/ inline AccessPreviewFinding& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;} /** *An error.
*/ inline const Aws::String& GetError() const{ return m_error; } /** *An error.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *An error.
*/ inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; } /** *An error.
*/ inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *An error.
*/ inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); } /** *An error.
*/ inline AccessPreviewFinding& WithError(const Aws::String& value) { SetError(value); return *this;} /** *An error.
*/ inline AccessPreviewFinding& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *An error.
*/ inline AccessPreviewFinding& WithError(const char* value) { SetError(value); return *this;} /** *The sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline const Aws::VectorThe sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; } /** *The sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline void SetSources(const Aws::VectorThe sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline void SetSources(Aws::VectorThe sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline AccessPreviewFinding& WithSources(const Aws::VectorThe sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline AccessPreviewFinding& WithSources(Aws::VectorThe sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline AccessPreviewFinding& AddSources(const FindingSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** *The sources of the finding. This indicates how the access that generated the * finding is granted. It is populated for Amazon S3 bucket findings.
*/ inline AccessPreviewFinding& AddSources(FindingSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_existingFindingId; bool m_existingFindingIdHasBeenSet = false; FindingStatus m_existingFindingStatus; bool m_existingFindingStatusHasBeenSet = false; Aws::Map