Interface AssociateCrossAccountReplicaRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AssociateCrossAccountReplicaRequest.Builder,,AssociateCrossAccountReplicaRequest> SdkBuilder<AssociateCrossAccountReplicaRequest.Builder,,AssociateCrossAccountReplicaRequest> SdkPojo,SdkRequest.Builder,SecretsManagerRequest.Builder
- Enclosing class:
AssociateCrossAccountReplicaRequest
-
Method Summary
Modifier and TypeMethodDescriptioncrossAccountReplicaARN(String crossAccountReplicaARN) The ARN of the replica secret in the other Amazon Web Services account.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.replicaRestriction(String replicaRestriction) Whether the replica account must belong to the same Amazon Web Services organization as the primary account:replicaRestriction(ReplicaRestrictionType replicaRestriction) Whether the replica account must belong to the same Amazon Web Services organization as the primary account:replicationRoleARN(String replicationRoleARN) The ARN of an IAM role in the primary account that Secrets Manager assumes to perform replication.The ARN or name of the primary secret in your account to replicate.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.secretsmanager.model.SecretsManagerRequest.Builder
build
-
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
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
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
AssociateCrossAccountReplicaRequest.Builder replicaRestriction(ReplicaRestrictionType 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
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
AssociateCrossAccountReplicaRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AssociateCrossAccountReplicaRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-