Class PutPolicyRequest

    • Method Detail

      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.

        Returns:
        The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
      • policy

        public final String policy()

        The resource-based policy.

        If you set the value of the effect parameter in the policy to Deny for the PutPolicy operation, you must also set the value of the effect parameter to Deny for the AddPolicyStatement operation.

        Returns:
        The resource-based policy.

        If you set the value of the effect parameter in the policy to Deny for the PutPolicy operation, you must also set the value of the effect parameter to Deny for the AddPolicyStatement operation.

      • token

        public final String token()

        A unique identifier for the current revision of the policy.

        Returns:
        A unique identifier for the current revision of the policy.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object