Interface Check.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Check.Builder,Check>, SdkBuilder<Check.Builder,Check>, SdkPojo
Enclosing class:
Check

@Mutable @NotThreadSafe public static interface Check.Builder extends SdkPojo, CopyableBuilder<Check.Builder,Check>
  • Method Details

    • checkType

      Check.Builder checkType(String checkType)

      The type of requirement that the check evaluates. Valid values:

      • SERVICE_CONTROL_POLICY - The service control policies (SCPs) attached to one organization target, such as a root, organizational unit, or account, that apply to the principal.

      • RESOURCE_CONTROL_POLICY - The resource control policies (RCPs) attached to one organization target that apply to the resource.

      • VPC_ENDPOINT - The VPC endpoint policy for the endpoint through which the request passes.

      • RESOURCE - The resource owner's resource-based policies, when the owner must allow the request separately, such as a cross-account request or a request to an AWS KMS key.

      • PRINCIPAL - The principal's identity-based policies attached to the IAM user or role.

      • PERMISSIONS_BOUNDARY - The permissions boundary on the IAM user or role.

      • SESSION - The role session that made the request, decided by its session policies.

      Parameters:
      checkType - The type of requirement that the check evaluates. Valid values:

      • SERVICE_CONTROL_POLICY - The service control policies (SCPs) attached to one organization target, such as a root, organizational unit, or account, that apply to the principal.

      • RESOURCE_CONTROL_POLICY - The resource control policies (RCPs) attached to one organization target that apply to the resource.

      • VPC_ENDPOINT - The VPC endpoint policy for the endpoint through which the request passes.

      • RESOURCE - The resource owner's resource-based policies, when the owner must allow the request separately, such as a cross-account request or a request to an AWS KMS key.

      • PRINCIPAL - The principal's identity-based policies attached to the IAM user or role.

      • PERMISSIONS_BOUNDARY - The permissions boundary on the IAM user or role.

      • SESSION - The role session that made the request, decided by its session policies.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • checkType

      Check.Builder checkType(CheckType checkType)

      The type of requirement that the check evaluates. Valid values:

      • SERVICE_CONTROL_POLICY - The service control policies (SCPs) attached to one organization target, such as a root, organizational unit, or account, that apply to the principal.

      • RESOURCE_CONTROL_POLICY - The resource control policies (RCPs) attached to one organization target that apply to the resource.

      • VPC_ENDPOINT - The VPC endpoint policy for the endpoint through which the request passes.

      • RESOURCE - The resource owner's resource-based policies, when the owner must allow the request separately, such as a cross-account request or a request to an AWS KMS key.

      • PRINCIPAL - The principal's identity-based policies attached to the IAM user or role.

      • PERMISSIONS_BOUNDARY - The permissions boundary on the IAM user or role.

      • SESSION - The role session that made the request, decided by its session policies.

      Parameters:
      checkType - The type of requirement that the check evaluates. Valid values:

      • SERVICE_CONTROL_POLICY - The service control policies (SCPs) attached to one organization target, such as a root, organizational unit, or account, that apply to the principal.

      • RESOURCE_CONTROL_POLICY - The resource control policies (RCPs) attached to one organization target that apply to the resource.

      • VPC_ENDPOINT - The VPC endpoint policy for the endpoint through which the request passes.

      • RESOURCE - The resource owner's resource-based policies, when the owner must allow the request separately, such as a cross-account request or a request to an AWS KMS key.

      • PRINCIPAL - The principal's identity-based policies attached to the IAM user or role.

      • PERMISSIONS_BOUNDARY - The permissions boundary on the IAM user or role.

      • SESSION - The role session that made the request, decided by its session policies.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluatedEffect

      Check.Builder evaluatedEffect(String evaluatedEffect)

      The result of evaluating this requirement. Valid values:

      • ALLOW - A statement that applies to this check allows the request.

      • EXPLICIT_DENY - A deny statement that applies to this check matches.

      • IMPLICIT_DENY - The check required an allow and nothing that applies to it allows the request.

      • NO_IMPACT - No statement in this check matched, and no allow was needed because another path allowed the request.

      Parameters:
      evaluatedEffect - The result of evaluating this requirement. Valid values:

      • ALLOW - A statement that applies to this check allows the request.

      • EXPLICIT_DENY - A deny statement that applies to this check matches.

      • IMPLICIT_DENY - The check required an allow and nothing that applies to it allows the request.

      • NO_IMPACT - No statement in this check matched, and no allow was needed because another path allowed the request.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluatedEffect

      Check.Builder evaluatedEffect(CheckEffect evaluatedEffect)

      The result of evaluating this requirement. Valid values:

      • ALLOW - A statement that applies to this check allows the request.

      • EXPLICIT_DENY - A deny statement that applies to this check matches.

      • IMPLICIT_DENY - The check required an allow and nothing that applies to it allows the request.

      • NO_IMPACT - No statement in this check matched, and no allow was needed because another path allowed the request.

      Parameters:
      evaluatedEffect - The result of evaluating this requirement. Valid values:

      • ALLOW - A statement that applies to this check allows the request.

      • EXPLICIT_DENY - A deny statement that applies to this check matches.

      • IMPLICIT_DENY - The check required an allow and nothing that applies to it allows the request.

      • NO_IMPACT - No statement in this check matched, and no allow was needed because another path allowed the request.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetArn

      Check.Builder targetArn(String targetArn)

      The ARN that distinguishes this check from other checks of the same type. This value is absent when the check type alone identifies the check. For SCP and RCP checks, this is the AWS Organizations ARN of the root, organizational unit, or account that the evaluated policies are attached to.

      Parameters:
      targetArn - The ARN that distinguishes this check from other checks of the same type. This value is absent when the check type alone identifies the check. For SCP and RCP checks, this is the AWS Organizations ARN of the root, organizational unit, or account that the evaluated policies are attached to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relevantPolicyTypesWithStrings

      Check.Builder relevantPolicyTypesWithStrings(Collection<String> relevantPolicyTypes)

      The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.

      Parameters:
      relevantPolicyTypes - The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relevantPolicyTypesWithStrings

      Check.Builder relevantPolicyTypesWithStrings(String... relevantPolicyTypes)

      The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.

      Parameters:
      relevantPolicyTypes - The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relevantPolicyTypes

      Check.Builder relevantPolicyTypes(Collection<PolicyType> relevantPolicyTypes)

      The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.

      Parameters:
      relevantPolicyTypes - The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relevantPolicyTypes

      Check.Builder relevantPolicyTypes(PolicyType... relevantPolicyTypes)

      The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.

      Parameters:
      relevantPolicyTypes - The policy types used to satisfy this check, plus the type of every policy with a statement that matched in it. matchedPolicies lists matching policies in the top-level policies list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedPolicies

      Check.Builder matchedPolicies(Collection<MatchedPolicy> matchedPolicies)

      Policies in this list have statements that matched for this check. Each URI corresponds to an entry in the top-level policies list. Only policies in the top-level list are included. The check effect can reflect a matched policy omitted from this list, so this list can be empty even when the effect is ALLOW.

      Parameters:
      matchedPolicies - Policies in this list have statements that matched for this check. Each URI corresponds to an entry in the top-level policies list. Only policies in the top-level list are included. The check effect can reflect a matched policy omitted from this list, so this list can be empty even when the effect is ALLOW.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedPolicies

      Check.Builder matchedPolicies(MatchedPolicy... matchedPolicies)

      Policies in this list have statements that matched for this check. Each URI corresponds to an entry in the top-level policies list. Only policies in the top-level list are included. The check effect can reflect a matched policy omitted from this list, so this list can be empty even when the effect is ALLOW.

      Parameters:
      matchedPolicies - Policies in this list have statements that matched for this check. Each URI corresponds to an entry in the top-level policies list. Only policies in the top-level list are included. The check effect can reflect a matched policy omitted from this list, so this list can be empty even when the effect is ALLOW.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedPolicies

      Check.Builder matchedPolicies(Consumer<MatchedPolicy.Builder>... matchedPolicies)

      Policies in this list have statements that matched for this check. Each URI corresponds to an entry in the top-level policies list. Only policies in the top-level list are included. The check effect can reflect a matched policy omitted from this list, so this list can be empty even when the effect is ALLOW.

      This is a convenience method that creates an instance of the MatchedPolicy.Builder avoiding the need to create one manually via MatchedPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to matchedPolicies(List<MatchedPolicy>).

      Parameters:
      matchedPolicies - a consumer that will call methods on MatchedPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: