import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement , Operator } from '../shared' ; param sid export class Ecs extends PolicyStatement { public servicePrefix = 'ecs' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to create a new capacity provider. Capacity providers are associated with an Amazon ECS cluster and are used in capacity provider strategies to facilitate cluster auto scaling
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html
     */ public toCreateCapacityProvider ( ) { return this . to ( 'CreateCapacityProvider' ) ; } /**
     * Grants permission to create a new Amazon ECS cluster
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCapacityProvider()
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCluster.html
     */ public toCreateCluster ( ) { return this . to ( 'CreateCluster' ) ; } /**
     * Grants permission to run and maintain a desired number of tasks from a specified task definition via service creation
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifCapacityProvider()
     * - .ifTaskDefinition()
     * - .ifEnableExecuteCommand()
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html
     */ public toCreateService ( ) { return this . to ( 'CreateService' ) ; } /**
     * Grants permission to create a new Amazon ECS task set
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifCapacityProvider()
     * - .ifService()
     * - .ifTaskDefinition()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html
     */ public toCreateTaskSet ( ) { return this . to ( 'CreateTaskSet' ) ; } /**
     * Grants permission to modify the ARN and resource ID format of a resource for a specified IAM user, IAM role, or the root user for an account. You can specify whether the new ARN and resource ID format are disabled for new resources that are created
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteAccountSetting.html
     */ public toDeleteAccountSetting ( ) { return this . to ( 'DeleteAccountSetting' ) ; } /**
     * Grants permission to delete one or more custom attributes from an Amazon ECS resource
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteAttributes.html
     */ public toDeleteAttributes ( ) { return this . to ( 'DeleteAttributes' ) ; } /**
     * Grants permission to delete the specified capacity provider
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteCapacityProvider.html
     */ public toDeleteCapacityProvider ( ) { return this . to ( 'DeleteCapacityProvider' ) ; } /**
     * Grants permission to delete the specified cluster
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteCluster.html
     */ public toDeleteCluster ( ) { return this . to ( 'DeleteCluster' ) ; } /**
     * Grants permission to delete a specified service within a cluster
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteService.html
     */ public toDeleteService ( ) { return this . to ( 'DeleteService' ) ; } /**
     * Grants permission to delete the specified task set
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifService()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskSet.html
     */ public toDeleteTaskSet ( ) { return this . to ( 'DeleteTaskSet' ) ; } /**
     * Grants permission to deregister an Amazon ECS container instance from the specified cluster
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterContainerInstance.html
     */ public toDeregisterContainerInstance ( ) { return this . to ( 'DeregisterContainerInstance' ) ; } /**
     * Grants permission to deregister the specified task definition by family and revision
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterTaskDefinition.html
     */ public toDeregisterTaskDefinition ( ) { return this . to ( 'DeregisterTaskDefinition' ) ; } /**
     * Grants permission to describe one or more Amazon ECS capacity providers
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeCapacityProviders.html
     */ public toDescribeCapacityProviders ( ) { return this . to ( 'DescribeCapacityProviders' ) ; } /**
     * Grants permission to describes one or more of your clusters
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeClusters.html
     */ public toDescribeClusters ( ) { return this . to ( 'DescribeClusters' ) ; } /**
     * Grants permission to describes Amazon ECS container instances
     *
     * Access Level: Read
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeContainerInstances.html
     */ public toDescribeContainerInstances ( ) { return this . to ( 'DescribeContainerInstances' ) ; } /**
     * Grants permission to describe the specified services running in your cluster
     *
     * Access Level: Read
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServices.html
     */ public toDescribeServices ( ) { return this . to ( 'DescribeServices' ) ; } /**
     * Grants permission to describe a task definition. You can specify a family and revision to find information about a specific task definition, or you can simply specify the family to find the latest ACTIVE revision in that family
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTaskDefinition.html
     */ public toDescribeTaskDefinition ( ) { return this . to ( 'DescribeTaskDefinition' ) ; } /**
     * Grants permission to describe Amazon ECS task sets
     *
     * Access Level: Read
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifService()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTaskSets.html
     */ public toDescribeTaskSets ( ) { return this . to ( 'DescribeTaskSets' ) ; } /**
     * Grants permission to describe a specified task or tasks
     *
     * Access Level: Read
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html
     */ public toDescribeTasks ( ) { return this . to ( 'DescribeTasks' ) ; } /**
     * Grants permission to get an endpoint for the Amazon ECS agent to poll for updates
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DiscoverPollEndpoint.html
     */ public toDiscoverPollEndpoint ( ) { return this . to ( 'DiscoverPollEndpoint' ) ; } /**
     * Grants permission to run a command remotely on an Amazon ECS container
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifContainerName()
     * - .ifTask()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ExecuteCommand.html
     */ public toExecuteCommand ( ) { return this . to ( 'ExecuteCommand' ) ; } /**
     * Grants permission to list the account settings for an Amazon ECS resource for a specified principal
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListAccountSettings.html
     */ public toListAccountSettings ( ) { return this . to ( 'ListAccountSettings' ) ; } /**
     * Grants permission to lists the attributes for Amazon ECS resources within a specified target type and cluster
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListAttributes.html
     */ public toListAttributes ( ) { return this . to ( 'ListAttributes' ) ; } /**
     * Grants permission to get a list of existing clusters
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html
     */ public toListClusters ( ) { return this . to ( 'ListClusters' ) ; } /**
     * Grants permission to get a list of container instances in a specified cluster
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListContainerInstances.html
     */ public toListContainerInstances ( ) { return this . to ( 'ListContainerInstances' ) ; } /**
     * Grants permission to get a list of services that are running in a specified cluster
     *
     * Access Level: List
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html
     */ public toListServices ( ) { return this . to ( 'ListServices' ) ; } /**
     * Grants permission to get a list of tags for the specified resource
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTagsForResource.html
     */ public toListTagsForResource ( ) { return this . to ( 'ListTagsForResource' ) ; } /**
     * Grants permission to get a list of task definition families that are registered to your account (which may include task definition families that no longer have any ACTIVE task definitions)
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html
     */ public toListTaskDefinitionFamilies ( ) { return this . to ( 'ListTaskDefinitionFamilies' ) ; } /**
     * Grants permission to get a list of task definitions that are registered to your account
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTaskDefinitions.html
     */ public toListTaskDefinitions ( ) { return this . to ( 'ListTaskDefinitions' ) ; } /**
     * Grants permission to get a list of tasks for a specified cluster
     *
     * Access Level: List
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html
     */ public toListTasks ( ) { return this . to ( 'ListTasks' ) ; } /**
     * Grants permission to an agent to connect with the Amazon ECS service to report status and get commands
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/developerguide/instance_IAM_role.html
     */ public toPoll ( ) { return this . to ( 'Poll' ) ; } /**
     * Grants permission to modify the ARN and resource ID format of a resource for a specified IAM user, IAM role, or the root user for an account. You can specify whether the new ARN and resource ID format are enabled for new resources that are created. Enabling this setting is required to use new Amazon ECS features such as resource tagging
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html
     */ public toPutAccountSetting ( ) { return this . to ( 'PutAccountSetting' ) ; } /**
     * Grants permission to modify the ARN and resource ID format of a resource type for all IAM users on an account for which no individual account setting has been set. Enabling this setting is required to use new Amazon ECS features such as resource tagging
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html
     */ public toPutAccountSettingDefault ( ) { return this . to ( 'PutAccountSettingDefault' ) ; } /**
     * Grants permission to create or update an attribute on an Amazon ECS resource
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAttributes.html
     */ public toPutAttributes ( ) { return this . to ( 'PutAttributes' ) ; } /**
     * Grants permission to modify the available capacity providers and the default capacity provider strategy for a cluster
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCapacityProvider()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html
     */ public toPutClusterCapacityProviders ( ) { return this . to ( 'PutClusterCapacityProviders' ) ; } /**
     * Grants permission to register an EC2 instance into the specified cluster
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RegisterContainerInstance.html
     */ public toRegisterContainerInstance ( ) { return this . to ( 'RegisterContainerInstance' ) ; } /**
     * Grants permission to register a new task definition from the supplied family and containerDefinitions
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RegisterTaskDefinition.html
     */ public toRegisterTaskDefinition ( ) { return this . to ( 'RegisterTaskDefinition' ) ; } /**
     * Grants permission to start a task using random placement and the default Amazon ECS scheduler
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifCapacityProvider()
     * - .ifEnableExecuteCommand()
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html
     */ public toRunTask ( ) { return this . to ( 'RunTask' ) ; } /**
     * Grants permission to start a new task from the specified task definition on the specified container instance or instances
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifContainerInstances()
     * - .ifEnableExecuteCommand()
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_StartTask.html
     */ public toStartTask ( ) { return this . to ( 'StartTask' ) ; } /**
     * Grants permission to start a telemetry session
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-metrics.html#enable_cloudwatch
     */ public toStartTelemetrySession ( ) { return this . to ( 'StartTelemetrySession' ) ; } /**
     * Grants permission to stop a running task
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_StopTask.html
     */ public toStopTask ( ) { return this . to ( 'StopTask' ) ; } /**
     * Grants permission to send an acknowledgement that attachments changed states
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_SubmitAttachmentStateChanges.html
     */ public toSubmitAttachmentStateChanges ( ) { return this . to ( 'SubmitAttachmentStateChanges' ) ; } /**
     * Grants permission to send an acknowledgement that a container changed states
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_SubmitContainerStateChange.html
     */ public toSubmitContainerStateChange ( ) { return this . to ( 'SubmitContainerStateChange' ) ; } /**
     * Grants permission to send an acknowledgement that a task changed states
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_SubmitTaskStateChange.html
     */ public toSubmitTaskStateChange ( ) { return this . to ( 'SubmitTaskStateChange' ) ; } /**
     * Grants permission to tag the specified resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsTagKeys()
     * - .ifAwsRequestTag()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html
     */ public toTagResource ( ) { return this . to ( 'TagResource' ) ; } /**
     * Grants permission to untag the specified resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UntagResource.html
     */ public toUntagResource ( ) { return this . to ( 'UntagResource' ) ; } /**
     * Grants permission to update the specified capacity provider
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateCapacityProvider.html
     */ public toUpdateCapacityProvider ( ) { return this . to ( 'UpdateCapacityProvider' ) ; } /**
     * Grants permission to modify the configuration or settings to use for a cluster
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateCluster.html
     */ public toUpdateCluster ( ) { return this . to ( 'UpdateCluster' ) ; } /**
     * Grants permission to modify the settings to use for a cluster
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateClusterSettings.html
     */ public toUpdateClusterSettings ( ) { return this . to ( 'UpdateClusterSettings' ) ; } /**
     * Grants permission to update the Amazon ECS container agent on a specified container instance
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateContainerAgent.html
     */ public toUpdateContainerAgent ( ) { return this . to ( 'UpdateContainerAgent' ) ; } /**
     * Grants permission to the user to modify the status of an Amazon ECS container instance
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateContainerInstancesState.html
     */ public toUpdateContainerInstancesState ( ) { return this . to ( 'UpdateContainerInstancesState' ) ; } /**
     * Grants permission to modify the parameters of a service
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifCapacityProvider()
     * - .ifEnableExecuteCommand()
     * - .ifTaskDefinition()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html
     */ public toUpdateService ( ) { return this . to ( 'UpdateService' ) ; } /**
     * Grants permission to modify the primary task set used in a service
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateServicePrimaryTaskSet.html
     */ public toUpdateServicePrimaryTaskSet ( ) { return this . to ( 'UpdateServicePrimaryTaskSet' ) ; } /**
     * Grants permission to update the specified task set
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifCluster()
     * - .ifService()
     *
     * https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateTaskSet.html
     */ public toUpdateTaskSet ( ) { return this . to ( 'UpdateTaskSet' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'CreateCapacityProvider' , 'CreateCluster' , 'CreateService' , 'CreateTaskSet' , 'DeleteAccountSetting' , 'DeleteAttributes' , 'DeleteCapacityProvider' , 'DeleteCluster' , 'DeleteService' , 'DeleteTaskSet' , 'DeregisterContainerInstance' , 'DeregisterTaskDefinition' , 'DiscoverPollEndpoint' , 'ExecuteCommand' , 'Poll' , 'PutAccountSetting' , 'PutAccountSettingDefault' , 'PutAttributes' , 'PutClusterCapacityProviders' , 'RegisterContainerInstance' , 'RegisterTaskDefinition' , 'RunTask' , 'StartTask' , 'StartTelemetrySession' , 'StopTask' , 'SubmitAttachmentStateChanges' , 'SubmitContainerStateChange' , 'SubmitTaskStateChange' , 'UpdateCapacityProvider' , 'UpdateCluster' , 'UpdateClusterSettings' , 'UpdateContainerAgent' , 'UpdateContainerInstancesState' , 'UpdateService' , 'UpdateServicePrimaryTaskSet' , 'UpdateTaskSet' ] , Read : [ 'DescribeCapacityProviders' , 'DescribeClusters' , 'DescribeContainerInstances' , 'DescribeServices' , 'DescribeTaskDefinition' , 'DescribeTaskSets' , 'DescribeTasks' , 'ListAccountSettings' , 'ListTagsForResource' ] , List : [ 'ListAttributes' , 'ListClusters' , 'ListContainerInstances' , 'ListServices' , 'ListTaskDefinitionFamilies' , 'ListTaskDefinitions' , 'ListTasks' ] , Tagging : [ 'TagResource' , 'UntagResource' ] } ; param clusterName param account param region param partition public onCluster ( clusterName , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:ecs:${ region || '*' }:${ account || '*' }:cluster/${ clusterName }` ) ; } param containerInstanceId param account param region param partition public onContainerInstance ( containerInstanceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:ecs:${ region || '*' }:${ account || '*' }:container-instance/${ containerInstanceId }` ) ; } param serviceName param account param region param partition public onService ( serviceName , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:ecs:${ region || '*' }:${ account || '*' }:service/${ serviceName }` ) ; } param taskId param account param region param partition public onTask ( taskId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:ecs:${ region || '*' }:${ account || '*' }:task/${ taskId }` ) ; } param taskDefinitionFamilyName param taskDefinitionRevisionNumber param account param region param partition public onTaskDefinition ( taskDefinitionFamilyName , taskDefinitionRevisionNumber , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:ecs:${ region || '*' }:${ account || '*' }:task-definition/${ taskDefinitionFamilyName }:${ taskDefinitionRevisionNumber }` ) ; } param capacityProviderName param account param region param partition public onCapacityProvider ( capacityProviderName , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:ecs:${ region || '*' }:${ account || '*' }:capacity-provider/${ capacityProviderName }` ) ; } param clusterName param serviceName param taskSetId param account param region param partition public onTaskSet ( clusterName , serviceName , taskSetId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:ecs:${ region || '*' }:${ account || '*' }:task-set/${ clusterName }/${ serviceName }/${ taskSetId }` ) ; } param tagKey param value param operator public ifResourceTag ( tagKey , value , operator ? ) { return this . if ( `ResourceTag/${ tagKey }` , value , operator || 'StringLike' ) ; } param value param operator public ifCapacityProvider ( value , operator ? ) { return this . if ( `capacity-provider` , value , operator || 'ArnLike' ) ; } param value param operator public ifCluster ( value , operator ? ) { return this . if ( `cluster` , value , operator || 'ArnLike' ) ; } param value param operator public ifContainerInstances ( value , operator ? ) { return this . if ( `container-instances` , value , operator || 'ArnLike' ) ; } param value param operator public ifContainerName ( value , operator ? ) { return this . if ( `container-name` , value , operator || 'StringLike' ) ; } param value param operator public ifEnableExecuteCommand ( value , operator ? ) { return this . if ( `enable-execute-command` , value , operator || 'StringLike' ) ; } param value param operator public ifService ( value , operator ? ) { return this . if ( `service` , value , operator || 'ArnLike' ) ; } param value param operator public ifTask ( value , operator ? ) { return this . if ( `task` , value , operator || 'ArnLike' ) ; } param value param operator public ifTaskDefinition ( value , operator ? ) { return this . if ( `task-definition` , value , operator || 'ArnLike' ) ; } }