com.amazonaws.auth.policy.conditions

## クラス ArnCondition

- java.lang.Object
- - com.amazonaws.auth.policy.Condition
  - - com.amazonaws.auth.policy.conditions.ArnCondition

-     public class ArnCondition
      extends Condition

  AWS access control policy condition that allows an access control statement to be conditionally applied based on the comparison of an Amazon Resource Name (ARN).

  An Amazon Resource Name (ARN) takes the following format: arn:aws:<vendor>:<region>:<namespace>:<relative-id>

  - vendor identifies the AWS product (e.g., sns)
  - region is the AWS Region the resource resides in (e.g., us-east-1), if any
  - namespace is the AWS account ID with no hyphens (e.g., 123456789012)
  - relative-id is the service specific portion that identifies the specific resource

  For example, an Amazon SQS queue might be addressed with the following ARN: arn:aws:sqs:us-east-1:987654321000:MyQueue

  Currently the only valid condition key to use in an ARN condition is `ConditionFactory.SOURCE_ARN_CONDITION_KEY`, which indicates the source resource that is modifying another resource, for example, an SNS topic is the source ARN when publishing messages from the topic to an SQS queue.

- - ### ネストされたクラスの概要

    ネストされたクラス
    修飾子とタイプ | クラスと説明
    --- | ---
    `static class` | `ArnCondition.ArnComparisonType` Enumeration of the supported ways an ARN comparison can be evaluated.

  - ### フィールドの概要

    - ### クラスから継承されたフィールド com.amazonaws.auth.policy.Condition

      `conditionKey, type, values`

  - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `ArnCondition(ArnCondition.ArnComparisonType type, java.lang.String key, java.lang.String value)` Constructs a new access control policy condition that compares ARNs (Amazon Resource Names).

  - ### メソッドの概要

    - ### クラスから継承されたメソッド com.amazonaws.auth.policy.Condition

      `getConditionKey, getType, getValues, setConditionKey, setType, setValues, withConditionKey, withType, withValues, withValues`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### ArnCondition

          public ArnCondition(ArnCondition.ArnComparisonType type,
                      java.lang.String key,
                      java.lang.String value)

      Constructs a new access control policy condition that compares ARNs (Amazon Resource Names).
      パラメータ:
        `type` - The type of comparison to perform.
        `key` - The access policy condition key specifying where to get the first ARN for the comparison (ex: `ConditionFactory.SOURCE_ARN_CONDITION_KEY`).
        `value` - The second ARN to compare against. When using `ArnCondition.ArnComparisonType.ArnLike` or `ArnCondition.ArnComparisonType.ArnNotLike` this may contain the multi-character wildcard (*) or the single-character wildcard (?).