secretsmanager:DisassociateCrossAccountReplica

Write

secretsmanager:DisassociateCrossAccountReplica is a Write access-level action in the secretsmanager service. Grants permission to stop replication from a cross-account primary secret to a cross-account replica secret

Resource types

ARNs that secretsmanager:DisassociateCrossAccountReplica can be scoped to in an IAM policy.

arn:${Partition}:secretsmanager:${Region}:${Account}:secret:${SecretId} required
Secret

Condition keys

Keys you can use in the Condition block of a policy that grants secretsmanager:DisassociateCrossAccountReplica.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

secretsmanager:CrossAccountReplicaARN ARN

Filters access by the cross-account replica secret ARN provided in the request when calling against a cross-account primary secret

secretsmanager:ResourceTag/tag-key String

Filters access by a tag key and value pair

secretsmanager:SecretId ARN

Filters access by the SecretID value in the request

secretsmanager:SecretPrimaryRegion String

Filters access by primary region in which the secret is created if the secret is a multi-Region secret

secretsmanager:resource/AllowRotationLambdaArn ARN

Filters access by the ARN of the rotation Lambda function associated with the secret

aws:RequestTag/${TagKey} String

Filters access by a key that is present in the request the user makes to the Secrets Manager service

aws:TagKeys ArrayOfString

Filters access by the list of all the tag key names present in the request the user makes to the Secrets Manager service

secretsmanager:resource/Type String

Filters access by the managed external secret type associated with the secret

Example IAM policy

A minimal policy that allows secretsmanager:DisassociateCrossAccountReplica. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSecretsmanagerDisassociateCrossAccountReplica",
      "Effect": "Allow",
      "Action": "secretsmanager:DisassociateCrossAccountReplica",
      "Resource": "*"
    }
  ]
}

Related actions in secretsmanager

View all secretsmanager actions →