UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

1,468 lines 161 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Gamelift = void 0; const shared_1 = require("../../shared"); /** * Statement provider for service [gamelift](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazongamelift.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ class Gamelift extends shared_1.PolicyStatement { /** * Grants permission to register player acceptance or rejection of a proposed FlexMatch match * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_AcceptMatch.html */ toAcceptMatch() { return this.to('AcceptMatch'); } /** * Grants permission to locate and reserve a game server to host a new game session * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ClaimGameServer.html */ toClaimGameServer() { return this.to('ClaimGameServer'); } /** * Grants permission to define a new alias for a fleet * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - gamelift:TagResource * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateAlias.html */ toCreateAlias() { return this.to('CreateAlias'); } /** * Grants permission to create a new game build using files stored in an Amazon S3 bucket * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - gamelift:TagResource * - iam:PassRole * - s3:GetObject * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateBuild.html */ toCreateBuild() { return this.to('CreateBuild'); } /** * Grants permission to create a new container fleet of computing resources to run your game servers * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - ec2:DescribeAvailabilityZones * - ec2:DescribeRegions * - gamelift:TagResource * - iam:PassRole * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateContainerFleet.html */ toCreateContainerFleet() { return this.to('CreateContainerFleet'); } /** * Grants permission to create a new container group definition using images stored in an Amazon ECR repository * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - ecr:BatchGetImage * - ecr:DescribeImages * - ecr:GetAuthorizationToken * - ecr:GetDownloadUrlForLayer * - gamelift:TagResource * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateContainerGroupDefinition.html */ toCreateContainerGroupDefinition() { return this.to('CreateContainerGroupDefinition'); } /** * Grants permission to create a new fleet of computing resources to run your game servers * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - ec2:DescribeAvailabilityZones * - ec2:DescribeRegions * - gamelift:TagResource * - iam:PassRole * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateFleet.html */ toCreateFleet() { return this.to('CreateFleet'); } /** * Grants permission to specify additional locations for a fleet * * Access Level: Write * * Dependent actions: * - ec2:DescribeAvailabilityZones * - ec2:DescribeRegions * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateFleetLocations.html */ toCreateFleetLocations() { return this.to('CreateFleetLocations'); } /** * Grants permission to create a new game server group, set up a corresponding Auto Scaling group, and launche instances to host game servers * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - autoscaling:CreateAutoScalingGroup * - autoscaling:DescribeAutoScalingGroups * - autoscaling:PutLifecycleHook * - autoscaling:PutScalingPolicy * - ec2:DescribeAvailabilityZones * - ec2:DescribeSubnets * - events:PutRule * - events:PutTargets * - gamelift:TagResource * - iam:PassRole * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateGameServerGroup.html */ toCreateGameServerGroup() { return this.to('CreateGameServerGroup'); } /** * Grants permission to start a new game session on a specified fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateGameSession.html */ toCreateGameSession() { return this.to('CreateGameSession'); } /** * Grants permission to set up a new queue for processing game session placement requests * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - gamelift:TagResource * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateGameSessionQueue.html */ toCreateGameSessionQueue() { return this.to('CreateGameSessionQueue'); } /** * Grants permission to define a new location for a fleet * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - gamelift:TagResource * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateLocation.html */ toCreateLocation() { return this.to('CreateLocation'); } /** * Grants permission to create a new FlexMatch matchmaker * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - gamelift:TagResource * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateMatchmakingConfiguration.html */ toCreateMatchmakingConfiguration() { return this.to('CreateMatchmakingConfiguration'); } /** * Grants permission to create a new matchmaking rule set for FlexMatch * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - gamelift:TagResource * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateMatchmakingRuleSet.html */ toCreateMatchmakingRuleSet() { return this.to('CreateMatchmakingRuleSet'); } /** * Grants permission to reserve an available game session slot for a player * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreatePlayerSession.html */ toCreatePlayerSession() { return this.to('CreatePlayerSession'); } /** * Grants permission to reserve available game session slots for multiple players * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreatePlayerSessions.html */ toCreatePlayerSessions() { return this.to('CreatePlayerSessions'); } /** * Grants permission to create a new Realtime Servers script * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - gamelift:TagResource * - iam:PassRole * - s3:GetObject * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateScript.html */ toCreateScript() { return this.to('CreateScript'); } /** * Grants permission to allow GameLift to create or delete a peering connection between a GameLift fleet VPC and a VPC on another AWS account * * Access Level: Write * * Dependent actions: * - ec2:AcceptVpcPeeringConnection * - ec2:AuthorizeSecurityGroupEgress * - ec2:AuthorizeSecurityGroupIngress * - ec2:CreateRoute * - ec2:DeleteRoute * - ec2:DescribeRouteTables * - ec2:DescribeSecurityGroups * - ec2:RevokeSecurityGroupEgress * - ec2:RevokeSecurityGroupIngress * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateVpcPeeringAuthorization.html */ toCreateVpcPeeringAuthorization() { return this.to('CreateVpcPeeringAuthorization'); } /** * Grants permission to establish a peering connection between your GameLift fleet VPC and a VPC on another account * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateVpcPeeringConnection.html */ toCreateVpcPeeringConnection() { return this.to('CreateVpcPeeringConnection'); } /** * Grants permission to delete an alias * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteAlias.html */ toDeleteAlias() { return this.to('DeleteAlias'); } /** * Grants permission to delete a game build * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteBuild.html */ toDeleteBuild() { return this.to('DeleteBuild'); } /** * Grants permission to delete a container fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteContainerFleet.html */ toDeleteContainerFleet() { return this.to('DeleteContainerFleet'); } /** * Grants permission to delete a container group definition * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteContainerGroupDefinition.html */ toDeleteContainerGroupDefinition() { return this.to('DeleteContainerGroupDefinition'); } /** * Grants permission to delete an empty fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteFleet.html */ toDeleteFleet() { return this.to('DeleteFleet'); } /** * Grants permission to delete locations for a fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteFleetLocations.html */ toDeleteFleetLocations() { return this.to('DeleteFleetLocations'); } /** * Grants permission to permanently delete a game server group and terminate FleetIQ activity for the corresponding Auto Scaling group * * Access Level: Write * * Dependent actions: * - autoscaling:DeleteAutoScalingGroup * - autoscaling:DescribeAutoScalingGroups * - autoscaling:ExitStandby * - autoscaling:ResumeProcesses * - autoscaling:SetInstanceProtection * - autoscaling:UpdateAutoScalingGroup * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteGameServerGroup.html */ toDeleteGameServerGroup() { return this.to('DeleteGameServerGroup'); } /** * Grants permission to delete an existing game session queue * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteGameSessionQueue.html */ toDeleteGameSessionQueue() { return this.to('DeleteGameSessionQueue'); } /** * Grants permission to delete a location * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteLocation.html */ toDeleteLocation() { return this.to('DeleteLocation'); } /** * Grants permission to delete an existing FlexMatch matchmaker * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteMatchmakingConfiguration.html */ toDeleteMatchmakingConfiguration() { return this.to('DeleteMatchmakingConfiguration'); } /** * Grants permission to delete an existing FlexMatch matchmaking rule set * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteMatchmakingRuleSet.html */ toDeleteMatchmakingRuleSet() { return this.to('DeleteMatchmakingRuleSet'); } /** * Grants permission to delete a set of auto-scaling rules * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteScalingPolicy.html */ toDeleteScalingPolicy() { return this.to('DeleteScalingPolicy'); } /** * Grants permission to delete a Realtime Servers script * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteScript.html */ toDeleteScript() { return this.to('DeleteScript'); } /** * Grants permission to cancel a VPC peering authorization * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteVpcPeeringAuthorization.html */ toDeleteVpcPeeringAuthorization() { return this.to('DeleteVpcPeeringAuthorization'); } /** * Grants permission to remove a peering connection between VPCs * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteVpcPeeringConnection.html */ toDeleteVpcPeeringConnection() { return this.to('DeleteVpcPeeringConnection'); } /** * Grants permission to deregister a compute against a fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeregisterCompute.html */ toDeregisterCompute() { return this.to('DeregisterCompute'); } /** * Grants permission to remove a game server from a game server group * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeregisterGameServer.html */ toDeregisterGameServer() { return this.to('DeregisterGameServer'); } /** * Grants permission to retrieve properties for an alias * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeAlias.html */ toDescribeAlias() { return this.to('DescribeAlias'); } /** * Grants permission to retrieve properties for a game build * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeBuild.html */ toDescribeBuild() { return this.to('DescribeBuild'); } /** * Grants permission to retrieve information for a compute in a fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeCompute.html */ toDescribeCompute() { return this.to('DescribeCompute'); } /** * Grants permission to retrieve the properties of an existing container fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeContainerFleet.html */ toDescribeContainerFleet() { return this.to('DescribeContainerFleet'); } /** * Grants permission to retrieve the properties of an existing container group definition * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeContainerGroupDefinition.html */ toDescribeContainerGroupDefinition() { return this.to('DescribeContainerGroupDefinition'); } /** * Grants permission to retrieve the maximum allowed and current usage for EC2 instance types * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeEC2InstanceLimits.html */ toDescribeEC2InstanceLimits() { return this.to('DescribeEC2InstanceLimits'); } /** * Grants permission to retrieve general properties, including status, for fleets * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetAttributes.html */ toDescribeFleetAttributes() { return this.to('DescribeFleetAttributes'); } /** * Grants permission to retrieve the current capacity settings for managed fleets * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html */ toDescribeFleetCapacity() { return this.to('DescribeFleetCapacity'); } /** * Grants permission to retrieve the properties of an existing fleet deployment * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetDeployment.html */ toDescribeFleetDeployment() { return this.to('DescribeFleetDeployment'); } /** * Grants permission to retrieve entries from a fleet's event log * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetEvents.html */ toDescribeFleetEvents() { return this.to('DescribeFleetEvents'); } /** * Grants permission to retrieve general properties, including statuses, for a fleet's locations * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationAttributes.html */ toDescribeFleetLocationAttributes() { return this.to('DescribeFleetLocationAttributes'); } /** * Grants permission to retrieve the current capacity setting for a fleet's location * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html */ toDescribeFleetLocationCapacity() { return this.to('DescribeFleetLocationCapacity'); } /** * Grants permission to retrieve utilization statistics for fleet's location * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationUtilization.html */ toDescribeFleetLocationUtilization() { return this.to('DescribeFleetLocationUtilization'); } /** * Grants permission to retrieve the inbound connection permissions for a fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetPortSettings.html */ toDescribeFleetPortSettings() { return this.to('DescribeFleetPortSettings'); } /** * Grants permission to retrieve utilization statistics for fleets * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetUtilization.html */ toDescribeFleetUtilization() { return this.to('DescribeFleetUtilization'); } /** * Grants permission to retrieve properties for a game server * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameServer.html */ toDescribeGameServer() { return this.to('DescribeGameServer'); } /** * Grants permission to retrieve properties for a game server group * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameServerGroup.html */ toDescribeGameServerGroup() { return this.to('DescribeGameServerGroup'); } /** * Grants permission to retrieve the status of EC2 instances in a game server group * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameServerInstances.html */ toDescribeGameServerInstances() { return this.to('DescribeGameServerInstances'); } /** * Grants permission to retrieve properties for game sessions in a fleet, including the protection policy * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameSessionDetails.html */ toDescribeGameSessionDetails() { return this.to('DescribeGameSessionDetails'); } /** * Grants permission to retrieve details of a game session placement request * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameSessionPlacement.html */ toDescribeGameSessionPlacement() { return this.to('DescribeGameSessionPlacement'); } /** * Grants permission to retrieve properties for game session queues * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameSessionQueues.html */ toDescribeGameSessionQueues() { return this.to('DescribeGameSessionQueues'); } /** * Grants permission to retrieve properties for game sessions in a fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameSessions.html */ toDescribeGameSessions() { return this.to('DescribeGameSessions'); } /** * Grants permission to retrieve information about instances in a managed fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeInstances.html */ toDescribeInstances() { return this.to('DescribeInstances'); } /** * Grants permission to retrieve details of matchmaking tickets * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeMatchmaking.html */ toDescribeMatchmaking() { return this.to('DescribeMatchmaking'); } /** * Grants permission to retrieve properties for FlexMatch matchmakers * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeMatchmakingConfigurations.html */ toDescribeMatchmakingConfigurations() { return this.to('DescribeMatchmakingConfigurations'); } /** * Grants permission to retrieve properties for FlexMatch matchmaking rule sets * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeMatchmakingRuleSets.html */ toDescribeMatchmakingRuleSets() { return this.to('DescribeMatchmakingRuleSets'); } /** * Grants permission to retrieve properties for player sessions in a game session * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribePlayerSessions.html */ toDescribePlayerSessions() { return this.to('DescribePlayerSessions'); } /** * Grants permission to retrieve the current runtime configuration for a fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeRuntimeConfiguration.html */ toDescribeRuntimeConfiguration() { return this.to('DescribeRuntimeConfiguration'); } /** * Grants permission to retrieve all scaling policies that are applied to a fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeScalingPolicies.html */ toDescribeScalingPolicies() { return this.to('DescribeScalingPolicies'); } /** * Grants permission to retrieve properties for a Realtime Servers script * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeScript.html */ toDescribeScript() { return this.to('DescribeScript'); } /** * Grants permission to retrieve valid VPC peering authorizations * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeVpcPeeringAuthorizations.html */ toDescribeVpcPeeringAuthorizations() { return this.to('DescribeVpcPeeringAuthorizations'); } /** * Grants permission to retrieve details on active or pending VPC peering connections * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeVpcPeeringConnections.html */ toDescribeVpcPeeringConnections() { return this.to('DescribeVpcPeeringConnections'); } /** * Grants permission to retrieve credentials to remotely access a compute in a managed fleet * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_GetComputeAccess.html */ toGetComputeAccess() { return this.to('GetComputeAccess'); } /** * Grants permission to retrieve an authentication token that allows processes on a compute to send requests to the Amazon GameLift service * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_GetComputeAuthToken.html */ toGetComputeAuthToken() { return this.to('GetComputeAuthToken'); } /** * Grants permission to retrieve the location of stored logs for a game session * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_GetGameSessionLogUrl.html */ toGetGameSessionLogUrl() { return this.to('GetGameSessionLogUrl'); } /** * Grants permission to request remote access to a specified fleet instance * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_GetInstanceAccess.html */ toGetInstanceAccess() { return this.to('GetInstanceAccess'); } /** * Grants permission to retrieve all aliases that are defined in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListAliases.html */ toListAliases() { return this.to('ListAliases'); } /** * Grants permission to retrieve all game build in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListBuilds.html */ toListBuilds() { return this.to('ListBuilds'); } /** * Grants permission to retrieve all compute resources in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListCompute.html */ toListCompute() { return this.to('ListCompute'); } /** * Grants permission to retrieve the properties of all existing container fleets in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListContainerFleets.html */ toListContainerFleets() { return this.to('ListContainerFleets'); } /** * Grants permission to retrieve the properties of all versions of an existing container group definition * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListContainerGroupDefinitionVersions.html */ toListContainerGroupDefinitionVersions() { return this.to('ListContainerGroupDefinitionVersions'); } /** * Grants permission to retrieve the properties of all existing container group definitions in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListContainerGroupDefinitions.html */ toListContainerGroupDefinitions() { return this.to('ListContainerGroupDefinitions'); } /** * Grants permission to retrieve the properties of all existing fleet deployments in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListFleetDeployments.html */ toListFleetDeployments() { return this.to('ListFleetDeployments'); } /** * Grants permission to retrieve a list of fleet IDs for all fleets in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListFleets.html */ toListFleets() { return this.to('ListFleets'); } /** * Grants permission to retrieve all game server groups that are defined in the current Region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListGameServerGroups.html */ toListGameServerGroups() { return this.to('ListGameServerGroups'); } /** * Grants permission to retrieve all game servers that are currently running in a game server group * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListGameServers.html */ toListGameServers() { return this.to('ListGameServers'); } /** * Grants permission to retrieve all locations in this account * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListLocations.html */ toListLocations() { return this.to('ListLocations'); } /** * Grants permission to retrieve properties for all Realtime Servers scripts in the current region * * Access Level: List * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListScripts.html */ toListScripts() { return this.to('ListScripts'); } /** * Grants permission to retrieve tags for GameLift resources * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ListTagsForResource.html */ toListTagsForResource() { return this.to('ListTagsForResource'); } /** * Grants permission to create or update a fleet auto-scaling policy * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_PutScalingPolicy.html */ toPutScalingPolicy() { return this.to('PutScalingPolicy'); } /** * Grants permission to register a compute against a fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_RegisterCompute.html */ toRegisterCompute() { return this.to('RegisterCompute'); } /** * Grants permission to notify GameLift FleetIQ when a new game server is ready to host gameplay * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_RegisterGameServer.html */ toRegisterGameServer() { return this.to('RegisterGameServer'); } /** * Grants permission to retrieve fresh upload credentials to use when uploading a new game build * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_RequestUploadCredentials.html */ toRequestUploadCredentials() { return this.to('RequestUploadCredentials'); } /** * Grants permission to retrieve the fleet ID associated with an alias * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ResolveAlias.html */ toResolveAlias() { return this.to('ResolveAlias'); } /** * Grants permission to reinstate suspended FleetIQ activity for a game server group * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ResumeGameServerGroup.html */ toResumeGameServerGroup() { return this.to('ResumeGameServerGroup'); } /** * Grants permission to retrieve game sessions that match a set of search criteria * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_SearchGameSessions.html */ toSearchGameSessions() { return this.to('SearchGameSessions'); } /** * Grants permission to resume auto-scaling activity on a fleet after it was suspended with StopFleetActions() * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_StartFleetActions.html */ toStartFleetActions() { return this.to('StartFleetActions'); } /** * Grants permission to send a game session placement request to a game session queue * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_StartGameSessionPlacement.html */ toStartGameSessionPlacement() { return this.to('StartGameSessionPlacement'); } /** * Grants permission to request FlexMatch matchmaking to fill available player slots in an existing game session * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_StartMatchBackfill.html */ toStartMatchBackfill() { return this.to('StartMatchBackfill'); } /** * Grants permission to request FlexMatch matchmaking for one or a group of players and initiate game session placement * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_StartMatchmaking.html */ toStartMatchmaking() { return this.to('StartMatchmaking'); } /** * Grants permission to suspend auto-scaling activity on a fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_StopFleetActions.html */ toStopFleetActions() { return this.to('StopFleetActions'); } /** * Grants permission to cancel a game session placement request that is in progress * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_StopGameSessionPlacement.html */ toStopGameSessionPlacement() { return this.to('StopGameSessionPlacement'); } /** * Grants permission to cancel a matchmaking or match backfill request that is in progress * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_StopMatchmaking.html */ toStopMatchmaking() { return this.to('StopMatchmaking'); } /** * Grants permission to temporarily stop FleetIQ activity for a game server group * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_SuspendGameServerGroup.html */ toSuspendGameServerGroup() { return this.to('SuspendGameServerGroup'); } /** * Grants permission to tag GameLift resources * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_TagResource.html */ toTagResource() { return this.to('TagResource'); } /** * Grants permission to shut down an existing game session * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_TerminateGameSession.html */ toTerminateGameSession() { return this.to('TerminateGameSession'); } /** * Grants permission to untag GameLift resources * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UntagResource.html */ toUntagResource() { return this.to('UntagResource'); } /** * Grants permission to update the properties of an existing alias * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateAlias.html */ toUpdateAlias() { return this.to('UpdateAlias'); } /** * Grants permission to update an existing build's metadata * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateBuild.html */ toUpdateBuild() { return this.to('UpdateBuild'); } /** * Grants permission to update an existing container fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerFleet.html */ toUpdateContainerFleet() { return this.to('UpdateContainerFleet'); } /** * Grants permission to update the properties of an existing container group definition * * Access Level: Write * * Dependent actions: * - ecr:BatchGetImage * - ecr:DescribeImages * - ecr:GetAuthorizationToken * - ecr:GetDownloadUrlForLayer * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html */ toUpdateContainerGroupDefinition() { return this.to('UpdateContainerGroupDefinition'); } /** * Grants permission to update the general properties of an existing fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetAttributes.html */ toUpdateFleetAttributes() { return this.to('UpdateFleetAttributes'); } /** * Grants permission to adjust a managed fleet's capacity settings * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html */ toUpdateFleetCapacity() { return this.to('UpdateFleetCapacity'); } /** * Grants permission to adjust a fleet's port settings * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetPortSettings.html */ toUpdateFleetPortSettings() { return this.to('UpdateFleetPortSettings'); } /** * Grants permission to change game server properties, health status, or utilization status * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateGameServer.html */ toUpdateGameServer() { return this.to('UpdateGameServer'); } /** * Grants permission to update properties for game server group, including allowed instance types * * Access Level: Write * * Dependent actions: * - iam:PassRole * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateGameServerGroup.html */ toUpdateGameServerGroup() { return this.to('UpdateGameServerGroup'); } /** * Grants permission to update the properties of an existing game session * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateGameSession.html */ toUpdateGameSession() { return this.to('UpdateGameSession'); } /** * Grants permission to update properties of an existing game session queue * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateGameSessionQueue.html */ toUpdateGameSessionQueue() { return this.to('UpdateGameSessionQueue'); } /** * Grants permission to update properties of an existing FlexMatch matchmaking configuration * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateMatchmakingConfiguration.html */ toUpdateMatchmakingConfiguration() { return this.to('UpdateMatchmakingConfiguration'); } /** * Grants permission to update how server processes are configured on instances in an existing fleet * * Access Level: Write * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateRuntimeConfiguration.html */ toUpdateRuntimeConfiguration() { return this.to('UpdateRuntimeConfiguration'); } /** * Grants permission to update the metadata and content of an existing Realtime Servers script * * Access Level: Write * * Dependent actions: * - iam:PassRole * - s3:GetObject * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateScript.html */ toUpdateScript() { return this.to('UpdateScript'); } /** * Grants permission to validate the syntax of a FlexMatch matchmaking rule set * * Access Level: Read * * https://docs.aws.amazon.com/gamelift/latest/apireference/API_ValidateMatchmakingRuleSet.html */ toValidateMatchmakingRuleSet() { return this.to('ValidateMatchmakingRuleSet'); } /** * Adds a resource of type alias to the statement * * https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-console-aliases.html * * @param aliasId - Identifier for the aliasId. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onAlias(aliasId, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}::alias/${aliasId}`); } /** * Adds a resource of type build to the statement * * https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-console-builds.html * * @param buildId - Identifier for the buildId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onBuild(buildId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:build/${buildId}`); } /** * Adds a resource of type containerGroupDefinition to the statement * * https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-intro.html * * @param name - Identifier for the name. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onContainerGroupDefinition(name, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:containergroupdefinition/${name}`); } /** * Adds a resource of type containerFleet to the statement * * https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-intro.html * * @param fleetId - Identifier for the fleetId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onContainerFleet(fleetId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:containerfleet/${fleetId}`); } /** * Adds a resource of type fleet to the statement * * https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-console-fleets.html * * @param fleetId - Identifier for the fleetId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onFleet(fleetId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:fleet/${fleetId}`); } /** * Adds a resource of type gameServerGroup to the statement * * https://docs.aws.amazon.com/gamelift/latest/fleetiqguide/gsg-integrate-gameservergroup.html * * @param gameServerGroupName - Identifier for the gameServerGroupName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onGameServerGroup(gameServerGroupName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:gameservergroup/${gameServerGroupName}`); } /** * Adds a resource of type gameSessionQueue to the statement * * https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-console.html * * @param gameSessionQueueName - Identifier for the gameSessionQueueName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onGameSessionQueue(gameSessionQueueName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:gamesessionqueue/${gameSessionQueueName}`); } /** * Adds a resource of type location to the statement * * https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-creating-anywhere.html#fleet-anywhere-location * * @param locationId - Identifier for the locationId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onLocation(locationId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:gamelift:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:location/${locationId}`); } /** * Adds a resource of type matchmakingConfiguration to the statement * * https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-create-configuration.html * * @param matchmakingConfigurationName - Identifier for the matchmakingConfigurationName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where t