datasync:CreateLocationSmb

Write

datasync:CreateLocationSmb is a Write access-level action in the datasync service. Grants permission to create an endpoint for an SMB file system

Resource types

ARNs that datasync:CreateLocationSmb can be scoped to in an IAM policy.

arn:${Partition}:datasync:${Region}:${AccountId}:agent/${AgentId} required
agent

Condition keys

Keys you can use in the Condition block of a policy that grants datasync:CreateLocationSmb.

aws:RequestTag/${TagKey} String

Filters access by the tag key-value pairs in the request

aws:TagKeys ArrayOfString

Filters access by the tag keys in the request

aws:ResourceTag/${TagKey} String

Filters access by the tag key-value pairs associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowDatasyncCreateLocationSmb",
      "Effect": "Allow",
      "Action": "datasync:CreateLocationSmb",
      "Resource": "*"
    }
  ]
}

Related actions in datasync

View all datasync actions →