Actions, resources, and condition keys for Amazon VPC Lattice - Service Authorization Reference

Actions, resources, and condition keys for Amazon VPC Lattice

Amazon VPC Lattice (service prefix: vpc-lattice) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.

References:

Actions defined by Amazon VPC Lattice

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.

The Resource types column of the Actions table indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") to which the policy applies in the Resource element of your policy statement. If the column includes a resource type, then you can specify an ARN of that type in a statement with that action. If the action has one or more required resources, the caller must have permission to use the action with those resources. Required resources are indicated in the table with an asterisk (*). If you limit resource access with the Resource element in an IAM policy, you must include an ARN or pattern for each required resource type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one of the optional resource types.

The Condition keys column of the Actions table includes keys that you can specify in a policy statement's Condition element. For more information on the condition keys that are associated with resources for the service, see the Condition keys column of the Resource types table.

Note

Resource condition keys are listed in the Resource types table. You can find a link to the resource type that applies to an action in the Resource types (*required) column of the Actions table. The resource type in the Resource types table includes the Condition keys column, which are the resource condition keys that apply to an action in the Actions table.

For details about the columns in the following table, see Actions table.

Actions Description Access level Resource types (*required) Condition keys Dependent actions
AssociateViaAWSService-EventsAndStates [permission only] Grants permission to associate a resource configuration through Amazon EventBridge and AWS Step Functions service networks Permissions management
CreateAccessLogSubscription Grants permission to create an access log subscription Write

AccessLogSubscription*

logs:CreateLogDelivery

logs:GetLogDelivery

ResourceConfiguration

Service

ServiceNetwork

aws:RequestTag/${TagKey}

aws:TagKeys

CreateListener Grants permission to create a listener Write

Listener*

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:Protocol

vpc-lattice:TargetGroupArns

CreateResourceConfiguration Grants permission to create a resource configuration Write

ResourceConfiguration

ResourceGateway

aws:RequestTag/${TagKey}

aws:TagKeys

CreateResourceGateway Grants permission to create a resource gateway Write

ResourceGateway*

ec2:DescribeSecurityGroups

ec2:DescribeSubnets

ec2:DescribeVpcs

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:VpcId

CreateRule Grants permission to create a rule Write

Rule*

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:TargetGroupArns

CreateService Grants permission to create a service Write

Service*

iam:CreateServiceLinkedRole

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:AuthType

CreateServiceNetwork Grants permission to create a service network Write

ServiceNetwork*

iam:CreateServiceLinkedRole

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:AuthType

CreateServiceNetworkResourceAssociation Grants permission to create an association between a service network and a resource Write

ResourceConfiguration*

ServiceNetwork*

ServiceNetworkResourceAssociation*

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:ResourceConfigurationArn

vpc-lattice:ServiceNetworkArn

CreateServiceNetworkServiceAssociation Grants permission to create a service network and service association Write

Service*

ServiceNetwork*

ServiceNetworkServiceAssociation*

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:ServiceArn

vpc-lattice:ServiceNetworkArn

CreateServiceNetworkVpcAssociation Grants permission to create a service network and VPC association Write

ServiceNetwork*

ec2:DescribeVpcs

ServiceNetworkVpcAssociation*

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:SecurityGroupIds

vpc-lattice:ServiceNetworkArn

vpc-lattice:VpcId

CreateServiceNetworkVpcEndpointAssociation [permission only] Grants permission to create an association between a service network and VPC endpoint Permissions management
CreateTargetGroup Grants permission to create a target group Write

TargetGroup*

iam:CreateServiceLinkedRole

aws:RequestTag/${TagKey}

aws:TagKeys

vpc-lattice:VpcId

DeleteAccessLogSubscription Grants permission to delete an access log subscription Write

AccessLogSubscription*

logs:DeleteLogDelivery

logs:GetLogDelivery

aws:ResourceTag/${TagKey}

DeleteAuthPolicy Grants permission to delete an auth policy Permissions management

Service

ServiceNetwork

DeleteListener Grants permission to delete a listener Write

Listener*

aws:ResourceTag/${TagKey}

DeleteResourceConfiguration Grants permission to delete a resource configuration Write

ResourceConfiguration*

aws:ResourceTag/${TagKey}

DeleteResourceEndpointAssociation Grants permission to delete a resource endpoint association Write

ResourceEndpointAssociation*

aws:ResourceTag/${TagKey}

DeleteResourceGateway Grants permission to delete a resource gateway Write

ResourceGateway*

aws:ResourceTag/${TagKey}

DeleteResourcePolicy Grants permission to delete a resource policy Write

ResourceConfiguration

Service

ServiceNetwork

DeleteRule Grants permission to delete a rule Write

Rule*

aws:ResourceTag/${TagKey}

DeleteService Grants permission to delete a service Write

Service*

aws:ResourceTag/${TagKey}

DeleteServiceNetwork Grants permission to delete a service network Write

ServiceNetwork*

aws:ResourceTag/${TagKey}

DeleteServiceNetworkResourceAssociation Grants permission to delete the association between a service network and resource Write

ServiceNetworkResourceAssociation*

aws:ResourceTag/${TagKey}

DeleteServiceNetworkServiceAssociation Grants permission to delete a service network service association Write

ServiceNetworkServiceAssociation*

aws:ResourceTag/${TagKey}

vpc-lattice:ServiceArn

vpc-lattice:ServiceNetworkArn

DeleteServiceNetworkVpcAssociation Grants permission to delete a service network and VPC association Write

ServiceNetworkVpcAssociation*

aws:ResourceTag/${TagKey}

vpc-lattice:ServiceNetworkArn

vpc-lattice:VpcId

DeleteTargetGroup Grants permission to delete a target group Write

TargetGroup*

aws:ResourceTag/${TagKey}

DeregisterTargets Grants permission to deregister targets from a target group Write

TargetGroup*

GetAccessLogSubscription Grants permission to get information about an access log subscription Read

AccessLogSubscription*

logs:GetLogDelivery

aws:ResourceTag/${TagKey}

GetAuthPolicy Grants permission to get information about an auth policy Read

Service

ServiceNetwork

GetListener Grants permission to get information about a listener Read

Listener*

aws:ResourceTag/${TagKey}

GetResourceConfiguration Grants permission to get information about a resource configuration Read

ResourceConfiguration*

aws:ResourceTag/${TagKey}

GetResourceGateway Grants permission to get information about a resource gateway Read

ResourceGateway*

aws:ResourceTag/${TagKey}

GetResourcePolicy Grants permission to get information about a resource policy Read

ResourceConfiguration

Service

ServiceNetwork

GetRule Grants permission to get information about a rule Read

Rule*

aws:ResourceTag/${TagKey}

GetService Grants permission to get information about a service Read

Service*

aws:ResourceTag/${TagKey}

GetServiceNetwork Grants permission to get information about a service network Read

ServiceNetwork*

aws:ResourceTag/${TagKey}

GetServiceNetworkResourceAssociation Grants permission to get information about an association between a service network and resource configuration Read

ServiceNetworkResourceAssociation*

aws:ResourceTag/${TagKey}

GetServiceNetworkServiceAssociation Grants permission to get information about a service network and service association Read

ServiceNetworkServiceAssociation*

aws:ResourceTag/${TagKey}

vpc-lattice:ServiceArn

vpc-lattice:ServiceNetworkArn

GetServiceNetworkVpcAssociation Grants permission to get information about a service network and VPC association Read

ServiceNetworkVpcAssociation*

aws:ResourceTag/${TagKey}

vpc-lattice:ServiceNetworkArn

vpc-lattice:VpcId

GetTargetGroup Grants permission to get information about a target group Read

TargetGroup*

aws:ResourceTag/${TagKey}

ListAccessLogSubscriptions Grants permission to list some or all access log subscriptions about a service network or a service List
ListListeners Grants permission to list some or all listeners List
ListResourceConfigurations Grants permission to list some or all resource configurations List
ListResourceEndpointAssociations Grants permission to list some or all associations between a resource configuration and VPC endpoint List

vpc-lattice:ResourceConfigurationArn

vpc-lattice:VpcEndpointId

ListResourceGateways Grants permission to list some or all resource gateways List
ListRules Grants permission to list some or all rules List
ListServiceNetworkResourceAssociations Grants permission to list some or all associations between a service network and resource configuration List
ListServiceNetworkServiceAssociations Grants permission to list some or all service network and service associations List

vpc-lattice:ServiceArn

vpc-lattice:ServiceNetworkArn

ListServiceNetworkVpcAssociations Grants permission to list some or all service network and VPC associations List

vpc-lattice:ServiceNetworkArn

vpc-lattice:VpcId

ListServiceNetworkVpcEndpointAssociations Grants permission to list some or all associations between a service network and VPC endpoint List
ListServiceNetworks Grants permission to list the service networks owned by a caller account or shared with the caller account List
ListServices Grants permission to list the services owned by a caller account or shared with the caller account List
ListTagsForResource Grants permission to list tags for a vpc-lattice resource Read
ListTargetGroups Grants permission to list some or all target groups List
ListTargets Grants permission to list some or all targets in a target group List

TargetGroup*

PutAuthPolicy Grants permission to create or update the auth policy for a service network or a service Permissions management

Service

ServiceNetwork

PutResourcePolicy Grants permission to create a resource policy for a resource configuration, service, or service network Write

ResourceConfiguration

Service

ServiceNetwork

RegisterTargets Grants permission to register targets to a target group Write

TargetGroup*

TagResource Grants permission to tag a vpc-lattice resource Tagging

AccessLogSubscription

Listener

ResourceConfiguration

ResourceEndpointAssociation

ResourceGateway

Rule

Service

ServiceNetwork

ServiceNetworkResourceAssociation

ServiceNetworkServiceAssociation

ServiceNetworkVpcAssociation

TargetGroup

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource Grants permission to untag a vpc-lattice resource Tagging

AccessLogSubscription

Listener

ResourceConfiguration

ResourceEndpointAssociation

ResourceGateway

Rule

Service

ServiceNetwork

ServiceNetworkResourceAssociation

ServiceNetworkServiceAssociation

ServiceNetworkVpcAssociation

TargetGroup

aws:TagKeys

UpdateAccessLogSubscription Grants permission to update an access log subscription Write

AccessLogSubscription*

logs:GetLogDelivery

logs:UpdateLogDelivery

aws:ResourceTag/${TagKey}

UpdateListener Grants permission to update a listener Write

Listener*

aws:ResourceTag/${TagKey}

vpc-lattice:TargetGroupArns

UpdateResourceConfiguration Grants permission to update a resource configuration Write

ResourceConfiguration*

aws:ResourceTag/${TagKey}

UpdateResourceGateway Grants permission to update a resource gateway Write

ResourceGateway*

aws:ResourceTag/${TagKey}

vpc-lattice:SecurityGroupIds

UpdateRule Grants permission to update a rule Write

Rule*

aws:ResourceTag/${TagKey}

vpc-lattice:TargetGroupArns

UpdateService Grants permission to update a service Write

Service*

aws:ResourceTag/${TagKey}

vpc-lattice:AuthType

UpdateServiceNetwork Grants permission to update a service network Write

ServiceNetwork*

aws:ResourceTag/${TagKey}

vpc-lattice:AuthType

UpdateServiceNetworkVpcAssociation Grants permission to update a service network and VPC association Write

ServiceNetworkVpcAssociation*

ec2:DescribeSecurityGroups

ec2:DescribeVpcs

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:SecurityGroupIds

vpc-lattice:ServiceNetworkArn

vpc-lattice:VpcId

UpdateTargetGroup Grants permission to update a target group Write

TargetGroup*

aws:ResourceTag/${TagKey}

Resource types defined by Amazon VPC Lattice

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the Resource types table. For details about the columns in the following table, see Resource types table.

Resource types ARN Condition keys
AccessLogSubscription arn:${Partition}:vpc-lattice:${Region}:${Account}:accesslogsubscription/${AccessLogSubscriptionId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Listener arn:${Partition}:vpc-lattice:${Region}:${Account}:service/${ServiceId}/listener/${ListenerId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:Protocol

vpc-lattice:TargetGroupArns

ResourceConfiguration arn:${Partition}:vpc-lattice:${Region}:${Account}:resourceconfiguration/${ResourceConfigurationId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ResourceEndpointAssociation arn:${Partition}:vpc-lattice:${Region}:${Account}:resourceendpointassociation/${ResourceEndpointAssociationId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:ResourceConfigurationArn

vpc-lattice:VpcEndpointId

ResourceGateway arn:${Partition}:vpc-lattice:${Region}:${Account}:resourcegateway/${ResourceGatewayId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:VpcId

Rule arn:${Partition}:vpc-lattice:${Region}:${Account}:service/${ServiceId}/listener/${ListenerId}/rule/${RuleId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:TargetGroupArns

Service arn:${Partition}:vpc-lattice:${Region}:${Account}:service/${ServiceId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:AuthType

ServiceNetwork arn:${Partition}:vpc-lattice:${Region}:${Account}:servicenetwork/${ServiceNetworkId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:AuthType

ServiceNetworkResourceAssociation arn:${Partition}:vpc-lattice:${Region}:${Account}:servicenetworkresourceassociation/${ServiceNetworkResourceAssociationId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:ResourceConfigurationArn

vpc-lattice:ServiceNetworkArn

ServiceNetworkServiceAssociation arn:${Partition}:vpc-lattice:${Region}:${Account}:servicenetworkserviceassociation/${ServiceNetworkServiceAssociationId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:ServiceArn

vpc-lattice:ServiceNetworkArn

ServiceNetworkVpcAssociation arn:${Partition}:vpc-lattice:${Region}:${Account}:servicenetworkvpcassociation/${ServiceNetworkVpcAssociationId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:SecurityGroupIds

vpc-lattice:ServiceNetworkArn

vpc-lattice:VpcId

TargetGroup arn:${Partition}:vpc-lattice:${Region}:${Account}:targetgroup/${TargetGroupId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

vpc-lattice:VpcId

Condition keys for Amazon VPC Lattice

Amazon VPC Lattice defines the following condition keys that can be used in the Condition element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see Condition keys table.

To view the global condition keys that are available to all services, see Available global condition keys.

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
vpc-lattice:AuthType Filters access by the auth type specified in the request String
vpc-lattice:Protocol Filters access by the protocol specified in the request String
vpc-lattice:ResourceConfigurationArn Filters access by the ARN of a resource configuration ARN
vpc-lattice:SecurityGroupIds Filters access by the IDs of security groups ArrayOfString
vpc-lattice:ServiceArn Filters access by the ARN of a service ARN
vpc-lattice:ServiceNetworkArn Filters access by the ARN of a service network ARN
vpc-lattice:TargetGroupArns Filters access by the ARNs of target groups ArrayOfARN
vpc-lattice:VpcEndpointId Filters access by the ID of a VPC endpoint String
vpc-lattice:VpcId Filters access by the ID of a virtual private cloud (VPC) String