Interface KmsGrantConfiguration.Builder

  • Method Details

    • operationsWithStrings

      KmsGrantConfiguration.Builder operationsWithStrings(Collection<String> operations)

      A list of operations that the grant permits.

      Parameters:
      operations - A list of operations that the grant permits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operationsWithStrings

      KmsGrantConfiguration.Builder operationsWithStrings(String... operations)

      A list of operations that the grant permits.

      Parameters:
      operations - A list of operations that the grant permits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operations

      A list of operations that the grant permits.

      Parameters:
      operations - A list of operations that the grant permits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operations

      A list of operations that the grant permits.

      Parameters:
      operations - A list of operations that the grant permits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • granteePrincipal

      KmsGrantConfiguration.Builder granteePrincipal(String granteePrincipal)

      The principal that is given permission to perform the operations that the grant permits.

      Parameters:
      granteePrincipal - The principal that is given permission to perform the operations that the grant permits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retiringPrincipal

      KmsGrantConfiguration.Builder retiringPrincipal(String retiringPrincipal)

      The principal that is given permission to retire the grant by using RetireGrant operation.

      Parameters:
      retiringPrincipal - The principal that is given permission to retire the grant by using RetireGrant operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraints

      Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.

      Parameters:
      constraints - Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraints

      Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to constraints(KmsGrantConstraints).

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

      KmsGrantConfiguration.Builder issuingAccount(String issuingAccount)

      The Amazon Web Services account under which the grant was issued. The account is used to propose KMS grants issued by accounts other than the owner of the key.

      Parameters:
      issuingAccount - The Amazon Web Services account under which the grant was issued. The account is used to propose KMS grants issued by accounts other than the owner of the key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.