/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the result of the simulation of a single API operation call on a
* single resource. This data type is used by a member of the
* EvaluationResult data type.See Also:
AWS
* API Reference
The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline const Aws::String& GetEvalResourceName() const{ return m_evalResourceName; } /** *The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline bool EvalResourceNameHasBeenSet() const { return m_evalResourceNameHasBeenSet; } /** *The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline void SetEvalResourceName(const Aws::String& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = value; } /** *The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline void SetEvalResourceName(Aws::String&& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = std::move(value); } /** *The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline void SetEvalResourceName(const char* value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName.assign(value); } /** *The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline ResourceSpecificResult& WithEvalResourceName(const Aws::String& value) { SetEvalResourceName(value); return *this;} /** *The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline ResourceSpecificResult& WithEvalResourceName(Aws::String&& value) { SetEvalResourceName(std::move(value)); return *this;} /** *The name of the simulated resource, in Amazon Resource Name (ARN) format.
*/ inline ResourceSpecificResult& WithEvalResourceName(const char* value) { SetEvalResourceName(value); return *this;} /** *The result of the simulation of the simulated API operation on the resource
* specified in EvalResourceName
.
The result of the simulation of the simulated API operation on the resource
* specified in EvalResourceName
.
The result of the simulation of the simulated API operation on the resource
* specified in EvalResourceName
.
The result of the simulation of the simulated API operation on the resource
* specified in EvalResourceName
.
The result of the simulation of the simulated API operation on the resource
* specified in EvalResourceName
.
The result of the simulation of the simulated API operation on the resource
* specified in EvalResourceName
.
A list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline const Aws::VectorA list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline bool MatchedStatementsHasBeenSet() const { return m_matchedStatementsHasBeenSet; } /** *A list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline void SetMatchedStatements(const Aws::VectorA list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline void SetMatchedStatements(Aws::VectorA list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline ResourceSpecificResult& WithMatchedStatements(const Aws::VectorA list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline ResourceSpecificResult& WithMatchedStatements(Aws::VectorA list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline ResourceSpecificResult& AddMatchedStatements(const Statement& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(value); return *this; } /** *A list of the statements in the input policies that determine the result for * this part of the simulation. Remember that even if multiple statements allow the * operation on the resource, if any statement denies that operation, then * the explicit deny overrides any allow. In addition, the deny statement is the * only entry included in the result.
*/ inline ResourceSpecificResult& AddMatchedStatements(Statement&& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(std::move(value)); return *this; } /** *A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
A list of context keys that are required by the included input policies but
* that were not provided by one of the input parameters. This list is used when a
* list of ARNs is included in the ResourceArns
parameter instead of
* "*". If you do not specify individual resources, by setting
* ResourceArns
to "*" or by not including the
* ResourceArns
parameter, then any missing context values are instead
* included under the EvaluationResults
section. To discover the
* context keys used by a set of policies, you can call
* GetContextKeysForCustomPolicy or
* GetContextKeysForPrincipalPolicy.
Additional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline const Aws::MapAdditional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline bool EvalDecisionDetailsHasBeenSet() const { return m_evalDecisionDetailsHasBeenSet; } /** *Additional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline void SetEvalDecisionDetails(const Aws::MapAdditional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline void SetEvalDecisionDetails(Aws::MapAdditional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& WithEvalDecisionDetails(const Aws::MapAdditional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& WithEvalDecisionDetails(Aws::MapAdditional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& AddEvalDecisionDetails(const Aws::String& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, value); return *this; } /** *Additional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& AddEvalDecisionDetails(Aws::String&& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(std::move(key), value); return *this; } /** *Additional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& AddEvalDecisionDetails(const Aws::String& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, std::move(value)); return *this; } /** *Additional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& AddEvalDecisionDetails(Aws::String&& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(std::move(key), std::move(value)); return *this; } /** *Additional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& AddEvalDecisionDetails(const char* key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, std::move(value)); return *this; } /** *Additional details about the results of the evaluation decision on a single * resource. This parameter is returned only for cross-account simulations. This * parameter explains how each policy type contributes to the resource-specific * evaluation decision.
*/ inline ResourceSpecificResult& AddEvalDecisionDetails(const char* key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, value); return *this; } /** *Contains information about the effect that a permissions boundary has on a * policy simulation when that boundary is applied to an IAM entity.
*/ inline const PermissionsBoundaryDecisionDetail& GetPermissionsBoundaryDecisionDetail() const{ return m_permissionsBoundaryDecisionDetail; } /** *Contains information about the effect that a permissions boundary has on a * policy simulation when that boundary is applied to an IAM entity.
*/ inline bool PermissionsBoundaryDecisionDetailHasBeenSet() const { return m_permissionsBoundaryDecisionDetailHasBeenSet; } /** *Contains information about the effect that a permissions boundary has on a * policy simulation when that boundary is applied to an IAM entity.
*/ inline void SetPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail& value) { m_permissionsBoundaryDecisionDetailHasBeenSet = true; m_permissionsBoundaryDecisionDetail = value; } /** *Contains information about the effect that a permissions boundary has on a * policy simulation when that boundary is applied to an IAM entity.
*/ inline void SetPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail&& value) { m_permissionsBoundaryDecisionDetailHasBeenSet = true; m_permissionsBoundaryDecisionDetail = std::move(value); } /** *Contains information about the effect that a permissions boundary has on a * policy simulation when that boundary is applied to an IAM entity.
*/ inline ResourceSpecificResult& WithPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail& value) { SetPermissionsBoundaryDecisionDetail(value); return *this;} /** *Contains information about the effect that a permissions boundary has on a * policy simulation when that boundary is applied to an IAM entity.
*/ inline ResourceSpecificResult& WithPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail&& value) { SetPermissionsBoundaryDecisionDetail(std::move(value)); return *this;} private: Aws::String m_evalResourceName; bool m_evalResourceNameHasBeenSet = false; PolicyEvaluationDecisionType m_evalResourceDecision; bool m_evalResourceDecisionHasBeenSet = false; Aws::Vector