dms:ListTagsForResource

Read

dms:ListTagsForResource is a Read access-level action in the dms service. Grants permission to list all tags for an AWS DMS resource

Resource types

ARNs that dms:ListTagsForResource can be scoped to in an IAM policy.

arn:${Partition}:dms:${Region}:${Account}:cert: required
Certificate
arn:${Partition}:dms:${Region}:${Account}:data-migration: required
DataMigration
arn:${Partition}:dms:${Region}:${Account}:data-provider: required
DataProvider
arn:${Partition}:dms:${Region}:${Account}:endpoint: required
Endpoint
arn:${Partition}:dms:${Region}:${Account}:es: required
EventSubscription
arn:${Partition}:dms:${Region}:${Account}:instance-profile: required
InstanceProfile
arn:${Partition}:dms:${Region}:${Account}:migration-project: required
MigrationProject
arn:${Partition}:dms:${Region}:${Account}:replication-config: required
ReplicationConfig
arn:${Partition}:dms:${Region}:${Account}:rep: required
ReplicationInstance
arn:${Partition}:dms:${Region}:${Account}:subgrp: required
ReplicationSubnetGroup
arn:${Partition}:dms:${Region}:${Account}:task: required
ReplicationTask
arn:${Partition}:dms:${Region}:${Account}:assessment-run: required
ReplicationTaskAssessmentRun
arn:${Partition}:dms:${Region}:${Account}:individual-assessment: required
ReplicationTaskIndividualAssessment

Condition keys

Keys you can use in the Condition block of a policy that grants dms:ListTagsForResource.

aws:ResourceTag/${TagKey} String

Filters access by the presence of tag key-value pairs attached to the resource

dms:assessment-run-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for AssessmentRun

dms:cert-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for Certificate

dms:data-migration-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for DataMigration

dms:data-provider-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for DataProvider

dms:endpoint-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for Endpoint

dms:es-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for EventSubscription

dms:individual-assessment-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for IndividualAssessment

dms:instance-profile-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for InstanceProfile

dms:migration-project-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for MigrationProject

dms:rep-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for ReplicationInstance

dms:replication-config-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for ReplicationConfig

dms:subgrp-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for ReplicationSubnetGroup

dms:task-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for ReplicationTask

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowDmsListTagsForResource",
      "Effect": "Allow",
      "Action": "dms:ListTagsForResource",
      "Resource": "*"
    }
  ]
}

Related actions in dms

View all dms actions →