Class PutResourcePolicyRequest

    • Method Detail

      • resourceArn

        public final String resourceArn()

        Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

        Returns:
        Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
      • policy

        public final String policy()

        A policy you want to associate with a resource.

        Returns:
        A policy you want to associate with a resource.
      • policyId

        public final String policyId()

        The policy ID.

        Returns:
        The policy ID.
      • policyHash

        public final String policyHash()

        ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a policy.

        Returns:
        ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a 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