JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.verifiedpermissions.model

Class CreatePolicyRequest

    • Constructor Detail

      • CreatePolicyRequest

        public CreatePolicyRequest()
    • Method Detail

      • setClientToken

        public void setClientToken(String clientToken)

        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

        Parameters:
        clientToken - Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

      • getClientToken

        public String getClientToken()

        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

        Returns:
        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

      • withClientToken

        public CreatePolicyRequest withClientToken(String clientToken)

        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

        Parameters:
        clientToken - Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

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

        public void setPolicyStoreId(String policyStoreId)

        Specifies the PolicyStoreId of the policy store you want to store the policy in.

        Parameters:
        policyStoreId - Specifies the PolicyStoreId of the policy store you want to store the policy in.
      • getPolicyStoreId

        public String getPolicyStoreId()

        Specifies the PolicyStoreId of the policy store you want to store the policy in.

        Returns:
        Specifies the PolicyStoreId of the policy store you want to store the policy in.
      • withPolicyStoreId

        public CreatePolicyRequest withPolicyStoreId(String policyStoreId)

        Specifies the PolicyStoreId of the policy store you want to store the policy in.

        Parameters:
        policyStoreId - Specifies the PolicyStoreId of the policy store you want to store the policy in.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDefinition

        public void setDefinition(PolicyDefinition definition)

        A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.

        Parameters:
        definition - A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
      • getDefinition

        public PolicyDefinition getDefinition()

        A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.

        Returns:
        A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
      • withDefinition

        public CreatePolicyRequest withDefinition(PolicyDefinition definition)

        A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.

        Parameters:
        definition - A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public 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
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /