Interface AssociateCrossAccountReplicaRequest.Builder

  • Method Details

    • secretId

      The ARN or name of the primary secret in your account to replicate.

      For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

      Parameters:
      secretId - The ARN or name of the primary secret in your account to replicate.

      For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

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

      AssociateCrossAccountReplicaRequest.Builder crossAccountReplicaARN(String crossAccountReplicaARN)

      The ARN of the replica secret in the other Amazon Web Services account. The replica secret must be in the same Region and partition as the primary secret. Additionally, the replica account owner must have created the replica secret as a cross-account replica of the primary secret. For more information see CreateSecret.

      Parameters:
      crossAccountReplicaARN - The ARN of the replica secret in the other Amazon Web Services account. The replica secret must be in the same Region and partition as the primary secret. Additionally, the replica account owner must have created the replica secret as a cross-account replica of the primary secret. For more information see CreateSecret.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • replicaRestriction

      AssociateCrossAccountReplicaRequest.Builder replicaRestriction(String replicaRestriction)

      Whether the replica account must belong to the same Amazon Web Services organization as the primary account:

      • SameOrg, which requires the replica account to be in the same organization as the primary account. This is the default.

      • NoRestriction, which allows the replica account to be in any organization.

      Parameters:
      replicaRestriction - Whether the replica account must belong to the same Amazon Web Services organization as the primary account:

      • SameOrg, which requires the replica account to be in the same organization as the primary account. This is the default.

      • NoRestriction, which allows the replica account to be in any organization.

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

      Whether the replica account must belong to the same Amazon Web Services organization as the primary account:

      • SameOrg, which requires the replica account to be in the same organization as the primary account. This is the default.

      • NoRestriction, which allows the replica account to be in any organization.

      Parameters:
      replicaRestriction - Whether the replica account must belong to the same Amazon Web Services organization as the primary account:

      • SameOrg, which requires the replica account to be in the same organization as the primary account. This is the default.

      • NoRestriction, which allows the replica account to be in any organization.

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

      AssociateCrossAccountReplicaRequest.Builder replicationRoleARN(String replicationRoleARN)

      The ARN of an IAM role in the primary account that Secrets Manager assumes to perform replication. If you don't include this field, Secrets Manager replicates using the credentials of caller who updates the primary secret. For more information, see Cross-account replication permissions.

      Parameters:
      replicationRoleARN - The ARN of an IAM role in the primary account that Secrets Manager assumes to perform replication. If you don't include this field, Secrets Manager replicates using the credentials of caller who updates the primary secret. For more information, see Cross-account replication permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.