Skip to content

Remove Regions From Replication

secretsmanager_remove_regions_from_replication R Documentation

For a secret that is replicated to other Regions, deletes the secret replicas from the Regions you specify

Description

For a secret that is replicated to other Regions, deletes the secret replicas from the Regions you specify.

Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.

Required permissions: secretsmanager:RemoveRegionsFromReplication. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

Usage

secretsmanager_remove_regions_from_replication(SecretId,
  RemoveReplicaRegions)

Arguments

SecretId

[required] The ARN or name of the secret.

RemoveReplicaRegions

[required] The Regions of the replicas to remove.

Value

A list with the following syntax:

list(
  ARN = "string",
  ReplicationStatus = list(
    list(
      Region = "string",
      KmsKeyId = "string",
      Status = "InSync"|"Failed"|"InProgress",
      StatusMessage = "string",
      LastAccessedDate = as.POSIXct(
        "2015-01-01"
      )
    )
  )
)

Request syntax

svc$remove_regions_from_replication(
  SecretId = "string",
  RemoveReplicaRegions = list(
    "string"
  )
)