View a markdown version of this page

Actions, resources, and condition keys for AWS Migration Hub Refactor Spaces - Service Authorization Reference

Actions, resources, and condition keys for AWS Migration Hub Refactor Spaces

AWS Migration Hub Refactor Spaces (service prefix: refactor-spaces) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by AWS Migration Hub Refactor Spaces

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

CreateApplication

refactor-spaces:CreateApplication

Write

refactor-spaces:TagResource

Tagging, Write

CreateEnvironment

refactor-spaces:CreateEnvironment

Write

refactor-spaces:TagResource

Tagging, Write

CreateRoute

refactor-spaces:CreateRoute

Write

refactor-spaces:TagResource

Tagging, Write

CreateService

refactor-spaces:CreateService

Write

refactor-spaces:TagResource

Tagging, Write

DeleteApplication

refactor-spaces:DeleteApplication

Write

DeleteEnvironment

refactor-spaces:DeleteEnvironment

Write

DeleteResourcePolicy

refactor-spaces:DeleteResourcePolicy

Write

DeleteRoute

refactor-spaces:DeleteRoute

Write

DeleteService

refactor-spaces:DeleteService

Write

GetApplication

refactor-spaces:GetApplication

Read

GetEnvironment

refactor-spaces:GetEnvironment

Read

GetResourcePolicy

refactor-spaces:GetResourcePolicy

Read

GetRoute

refactor-spaces:GetRoute

Read

GetService

refactor-spaces:GetService

Read

ListApplications

refactor-spaces:ListApplications

Read

ListEnvironmentVpcs

refactor-spaces:ListEnvironmentVpcs

Read

ListEnvironments

refactor-spaces:ListEnvironments

Read

ListRoutes

refactor-spaces:ListRoutes

Read

ListServices

refactor-spaces:ListServices

Read

ListTagsForResource

refactor-spaces:ListTagsForResource

Read

PutResourcePolicy

refactor-spaces:PutResourcePolicy

Write

TagResource

refactor-spaces:TagResource

Tagging, Write

UntagResource

refactor-spaces:UntagResource

Tagging, Write

UpdateRoute

refactor-spaces:UpdateRoute

Write

Actions defined by AWS Migration Hub Refactor Spaces

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

CreateApplication

Grants permission to create an application within an environment

aws:RequestTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

Write

CreateEnvironment

Grants permission to create an environment

aws:RequestTag/${TagKey}

aws:TagKeys

Write

CreateRoute

Grants permission to create a route within an application

aws:RequestTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

Write

CreateService

Grants permission to create a service within an application

aws:RequestTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:ServiceCreatedByAccount

Write

DeleteApplication

Grants permission to delete an application from an environment

application*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

Write

DeleteEnvironment

Grants permission to delete an environment

environment*

aws:ResourceTag/${TagKey}

Write

DeleteResourcePolicy

Grants permission to delete a resource policy

Write

DeleteRoute

Grants permission to delete a route from an application

route*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

Write

DeleteService

Grants permission to delete a service from an application

service*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:ServiceCreatedByAccount

Write

GetApplication

Grants permission to get more information about an application

application*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

Read

GetEnvironment

Grants permission to get more information for an environment

environment*

aws:ResourceTag/${TagKey}

Read

GetResourcePolicy

Grants permission to get the details about a resource policy

Read

GetRoute

Grants permission to get more information about a route

route*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

Read

GetService

Grants permission to get more information about a service

service*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:ServiceCreatedByAccount

Read

ListApplications

Grants permission to list all the applications in an environment

application*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

Read

ListEnvironmentVpcs

Grants permission to list all the VPCs for the environment

environment*

aws:ResourceTag/${TagKey}

Read

ListEnvironments

Grants permission to list all environments

Read

ListRoutes

Grants permission to list all the routes in an application

route*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

Read

ListServices

Grants permission to list all the services in an environment

environment*

aws:ResourceTag/${TagKey}

Read

ListTagsForResource

Grants permission to list all the tags for a given resource

Read

PutResourcePolicy

Grants permission to add a resource policy

Write

TagResource

Grants permission to tag a resource

application

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

Tagging, Write

environment

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

route

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

service

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

UntagResource

Grants permission to remove a tag from a resource

application

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

Tagging, Write

environment

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

route

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

service

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

UpdateRoute

Grants permission to update a route from an application

route*

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

Write

Resource types defined by AWS Migration Hub Refactor Spaces

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

application

arn:${Partition}:refactor-spaces:${Region}:${Account}:environment/${EnvironmentId}/application/${ApplicationId}

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

environment

arn:${Partition}:refactor-spaces:${Region}:${Account}:environment/${EnvironmentId}

aws:ResourceTag/${TagKey}

route

arn:${Partition}:refactor-spaces:${Region}:${Account}:environment/${EnvironmentId}/application/${ApplicationId}/route/${RouteId}

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:RouteCreatedByAccount

refactor-spaces:ServiceCreatedByAccount

refactor-spaces:SourcePath

service

arn:${Partition}:refactor-spaces:${Region}:${Account}:environment/${EnvironmentId}/application/${ApplicationId}/service/${ServiceId}

aws:ResourceTag/${TagKey}

refactor-spaces:ApplicationCreatedByAccount

refactor-spaces:CreatedByAccountIds

refactor-spaces:ServiceCreatedByAccount

Condition keys for AWS Migration Hub Refactor Spaces

AWS Migration Hub Refactor Spaces defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:RequestTag/${TagKey}

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

String

aws:ResourceTag/${TagKey}

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

String

aws:TagKeys

Filters access by the presence of tag keys in the request

ArrayOfString

refactor-spaces:ApplicationCreatedByAccount

Filters access by restricting the action to only those accounts that created the application within an environment

String

refactor-spaces:CreatedByAccountIds

Filters access by the accounts that created the resource

ArrayOfString

refactor-spaces:RouteCreatedByAccount

Filters access by restricting the action to only those accounts that created the route within an application

String

refactor-spaces:ServiceCreatedByAccount

Filters access by restricting the action to only those accounts that created the service within an application

String

refactor-spaces:SourcePath

Filters access by the path of the route

String