{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ECS.Types
(
defaultService,
_AccessDeniedException,
_InvalidParameterException,
_ServerException,
_ClusterContainsTasksException,
_PlatformUnknownException,
_ClusterContainsServicesException,
_TaskSetNotFoundException,
_ClusterContainsContainerInstancesException,
_ServiceNotActiveException,
_ClusterNotFoundException,
_NoUpdateAvailableException,
_UnsupportedFeatureException,
_ServiceNotFoundException,
_PlatformTaskDefinitionIncompatibilityException,
_MissingVersionException,
_UpdateInProgressException,
_TargetNotConnectedException,
_BlockedException,
_TargetNotFoundException,
_AttributeLimitExceededException,
_ClientException,
_ResourceNotFoundException,
_LimitExceededException,
_ResourceInUseException,
AgentUpdateStatus (..),
AssignPublicIp (..),
CapacityProviderField (..),
CapacityProviderStatus (..),
CapacityProviderUpdateStatus (..),
ClusterField (..),
ClusterSettingName (..),
Compatibility (..),
Connectivity (..),
ContainerCondition (..),
ContainerInstanceField (..),
ContainerInstanceStatus (..),
DeploymentControllerType (..),
DeploymentRolloutState (..),
DesiredStatus (..),
DeviceCgroupPermission (..),
EFSAuthorizationConfigIAM (..),
EFSTransitEncryption (..),
EnvironmentFileType (..),
ExecuteCommandLogging (..),
FirelensConfigurationType (..),
HealthStatus (..),
IpcMode (..),
LaunchType (..),
LogDriver (..),
ManagedAgentName (..),
ManagedScalingStatus (..),
ManagedTerminationProtection (..),
NetworkMode (..),
PidMode (..),
PlacementConstraintType (..),
PlacementStrategyType (..),
PlatformDeviceType (..),
PropagateTags (..),
ProxyConfigurationType (..),
ResourceType (..),
ScaleUnit (..),
SchedulingStrategy (..),
Scope (..),
ServiceField (..),
SettingName (..),
SortOrder (..),
StabilityStatus (..),
TargetType (..),
TaskDefinitionFamilyStatus (..),
TaskDefinitionField (..),
TaskDefinitionPlacementConstraintType (..),
TaskDefinitionStatus (..),
TaskField (..),
TaskSetField (..),
TaskStopCode (..),
TransportProtocol (..),
UlimitName (..),
Attachment (..),
newAttachment,
attachment_status,
attachment_details,
attachment_id,
attachment_type,
AttachmentStateChange (..),
newAttachmentStateChange,
attachmentStateChange_attachmentArn,
attachmentStateChange_status,
Attribute (..),
newAttribute,
attribute_targetId,
attribute_value,
attribute_targetType,
attribute_name,
AutoScalingGroupProvider (..),
newAutoScalingGroupProvider,
autoScalingGroupProvider_managedScaling,
autoScalingGroupProvider_managedTerminationProtection,
autoScalingGroupProvider_autoScalingGroupArn,
AutoScalingGroupProviderUpdate (..),
newAutoScalingGroupProviderUpdate,
autoScalingGroupProviderUpdate_managedScaling,
autoScalingGroupProviderUpdate_managedTerminationProtection,
AwsVpcConfiguration (..),
newAwsVpcConfiguration,
awsVpcConfiguration_securityGroups,
awsVpcConfiguration_assignPublicIp,
awsVpcConfiguration_subnets,
CapacityProvider (..),
newCapacityProvider,
capacityProvider_status,
capacityProvider_updateStatusReason,
capacityProvider_autoScalingGroupProvider,
capacityProvider_name,
capacityProvider_updateStatus,
capacityProvider_capacityProviderArn,
capacityProvider_tags,
CapacityProviderStrategyItem (..),
newCapacityProviderStrategyItem,
capacityProviderStrategyItem_base,
capacityProviderStrategyItem_weight,
capacityProviderStrategyItem_capacityProvider,
Cluster (..),
newCluster,
cluster_status,
cluster_clusterArn,
cluster_attachments,
cluster_runningTasksCount,
cluster_defaultCapacityProviderStrategy,
cluster_settings,
cluster_registeredContainerInstancesCount,
cluster_pendingTasksCount,
cluster_clusterName,
cluster_statistics,
cluster_configuration,
cluster_attachmentsStatus,
cluster_capacityProviders,
cluster_activeServicesCount,
cluster_tags,
ClusterConfiguration (..),
newClusterConfiguration,
clusterConfiguration_executeCommandConfiguration,
ClusterSetting (..),
newClusterSetting,
clusterSetting_value,
clusterSetting_name,
Container (..),
newContainer,
container_gpuIds,
container_networkBindings,
container_managedAgents,
container_image,
container_containerArn,
container_networkInterfaces,
container_taskArn,
container_lastStatus,
container_memory,
container_reason,
container_name,
container_imageDigest,
container_exitCode,
container_healthStatus,
container_cpu,
container_runtimeId,
container_memoryReservation,
ContainerDefinition (..),
newContainerDefinition,
containerDefinition_image,
containerDefinition_command,
containerDefinition_hostname,
containerDefinition_repositoryCredentials,
containerDefinition_dockerSecurityOptions,
containerDefinition_healthCheck,
containerDefinition_disableNetworking,
containerDefinition_secrets,
containerDefinition_volumesFrom,
containerDefinition_environment,
containerDefinition_environmentFiles,
containerDefinition_entryPoint,
containerDefinition_workingDirectory,
containerDefinition_ulimits,
containerDefinition_stopTimeout,
containerDefinition_privileged,
containerDefinition_portMappings,
containerDefinition_resourceRequirements,
containerDefinition_dockerLabels,
containerDefinition_extraHosts,
containerDefinition_memory,
containerDefinition_systemControls,
containerDefinition_user,
containerDefinition_firelensConfiguration,
containerDefinition_dnsSearchDomains,
containerDefinition_logConfiguration,
containerDefinition_linuxParameters,
containerDefinition_pseudoTerminal,
containerDefinition_dependsOn,
containerDefinition_name,
containerDefinition_dnsServers,
containerDefinition_mountPoints,
containerDefinition_interactive,
containerDefinition_startTimeout,
containerDefinition_links,
containerDefinition_readonlyRootFilesystem,
containerDefinition_essential,
containerDefinition_cpu,
containerDefinition_memoryReservation,
ContainerDependency (..),
newContainerDependency,
containerDependency_containerName,
containerDependency_condition,
ContainerInstance (..),
newContainerInstance,
containerInstance_status,
containerInstance_attachments,
containerInstance_runningTasksCount,
containerInstance_remainingResources,
containerInstance_ec2InstanceId,
containerInstance_containerInstanceArn,
containerInstance_agentConnected,
containerInstance_versionInfo,
containerInstance_agentUpdateStatus,
containerInstance_attributes,
containerInstance_version,
containerInstance_pendingTasksCount,
containerInstance_capacityProviderName,
containerInstance_registeredAt,
containerInstance_statusReason,
containerInstance_tags,
containerInstance_registeredResources,
ContainerOverride (..),
newContainerOverride,
containerOverride_command,
containerOverride_environment,
containerOverride_environmentFiles,
containerOverride_resourceRequirements,
containerOverride_memory,
containerOverride_name,
containerOverride_cpu,
containerOverride_memoryReservation,
ContainerService (..),
newContainerService,
containerService_taskSets,
containerService_runningCount,
containerService_status,
containerService_clusterArn,
containerService_propagateTags,
containerService_createdAt,
containerService_platformVersion,
containerService_enableECSManagedTags,
containerService_createdBy,
containerService_desiredCount,
containerService_loadBalancers,
containerService_pendingCount,
containerService_placementConstraints,
containerService_events,
containerService_placementStrategy,
containerService_deployments,
containerService_serviceName,
containerService_deploymentController,
containerService_launchType,
containerService_serviceArn,
containerService_taskDefinition,
containerService_schedulingStrategy,
containerService_healthCheckGracePeriodSeconds,
containerService_networkConfiguration,
containerService_serviceRegistries,
containerService_capacityProviderStrategy,
containerService_enableExecuteCommand,
containerService_tags,
containerService_roleArn,
containerService_deploymentConfiguration,
ContainerStateChange (..),
newContainerStateChange,
containerStateChange_networkBindings,
containerStateChange_status,
containerStateChange_containerName,
containerStateChange_reason,
containerStateChange_imageDigest,
containerStateChange_exitCode,
containerStateChange_runtimeId,
Deployment (..),
newDeployment,
deployment_rolloutState,
deployment_runningCount,
deployment_status,
deployment_createdAt,
deployment_platformVersion,
deployment_desiredCount,
deployment_pendingCount,
deployment_id,
deployment_failedTasks,
deployment_launchType,
deployment_updatedAt,
deployment_taskDefinition,
deployment_rolloutStateReason,
deployment_networkConfiguration,
deployment_capacityProviderStrategy,
DeploymentCircuitBreaker (..),
newDeploymentCircuitBreaker,
deploymentCircuitBreaker_enable,
deploymentCircuitBreaker_rollback,
DeploymentConfiguration (..),
newDeploymentConfiguration,
deploymentConfiguration_minimumHealthyPercent,
deploymentConfiguration_maximumPercent,
deploymentConfiguration_deploymentCircuitBreaker,
DeploymentController (..),
newDeploymentController,
deploymentController_type,
Device (..),
newDevice,
device_containerPath,
device_permissions,
device_hostPath,
DockerVolumeConfiguration (..),
newDockerVolumeConfiguration,
dockerVolumeConfiguration_driverOpts,
dockerVolumeConfiguration_driver,
dockerVolumeConfiguration_scope,
dockerVolumeConfiguration_labels,
dockerVolumeConfiguration_autoprovision,
EFSAuthorizationConfig (..),
newEFSAuthorizationConfig,
eFSAuthorizationConfig_accessPointId,
eFSAuthorizationConfig_iam,
EFSVolumeConfiguration (..),
newEFSVolumeConfiguration,
eFSVolumeConfiguration_rootDirectory,
eFSVolumeConfiguration_transitEncryption,
eFSVolumeConfiguration_authorizationConfig,
eFSVolumeConfiguration_transitEncryptionPort,
eFSVolumeConfiguration_fileSystemId,
EnvironmentFile (..),
newEnvironmentFile,
environmentFile_value,
environmentFile_type,
EphemeralStorage (..),
newEphemeralStorage,
ephemeralStorage_sizeInGiB,
ExecuteCommandConfiguration (..),
newExecuteCommandConfiguration,
executeCommandConfiguration_logConfiguration,
executeCommandConfiguration_kmsKeyId,
executeCommandConfiguration_logging,
ExecuteCommandLogConfiguration (..),
newExecuteCommandLogConfiguration,
executeCommandLogConfiguration_cloudWatchLogGroupName,
executeCommandLogConfiguration_s3KeyPrefix,
executeCommandLogConfiguration_cloudWatchEncryptionEnabled,
executeCommandLogConfiguration_s3EncryptionEnabled,
executeCommandLogConfiguration_s3BucketName,
FSxWindowsFileServerAuthorizationConfig (..),
newFSxWindowsFileServerAuthorizationConfig,
fSxWindowsFileServerAuthorizationConfig_credentialsParameter,
fSxWindowsFileServerAuthorizationConfig_domain,
FSxWindowsFileServerVolumeConfiguration (..),
newFSxWindowsFileServerVolumeConfiguration,
fSxWindowsFileServerVolumeConfiguration_fileSystemId,
fSxWindowsFileServerVolumeConfiguration_rootDirectory,
fSxWindowsFileServerVolumeConfiguration_authorizationConfig,
Failure (..),
newFailure,
failure_arn,
failure_reason,
failure_detail,
FirelensConfiguration (..),
newFirelensConfiguration,
firelensConfiguration_options,
firelensConfiguration_type,
HealthCheck (..),
newHealthCheck,
healthCheck_startPeriod,
healthCheck_retries,
healthCheck_interval,
healthCheck_timeout,
healthCheck_command,
HostEntry (..),
newHostEntry,
hostEntry_hostname,
hostEntry_ipAddress,
HostVolumeProperties (..),
newHostVolumeProperties,
hostVolumeProperties_sourcePath,
InferenceAccelerator (..),
newInferenceAccelerator,
inferenceAccelerator_deviceName,
inferenceAccelerator_deviceType,
InferenceAcceleratorOverride (..),
newInferenceAcceleratorOverride,
inferenceAcceleratorOverride_deviceName,
inferenceAcceleratorOverride_deviceType,
KernelCapabilities (..),
newKernelCapabilities,
kernelCapabilities_drop,
kernelCapabilities_add,
KeyValuePair (..),
newKeyValuePair,
keyValuePair_value,
keyValuePair_name,
LinuxParameters (..),
newLinuxParameters,
linuxParameters_sharedMemorySize,
linuxParameters_initProcessEnabled,
linuxParameters_tmpfs,
linuxParameters_swappiness,
linuxParameters_devices,
linuxParameters_capabilities,
linuxParameters_maxSwap,
LoadBalancer (..),
newLoadBalancer,
loadBalancer_loadBalancerName,
loadBalancer_containerName,
loadBalancer_targetGroupArn,
loadBalancer_containerPort,
LogConfiguration (..),
newLogConfiguration,
logConfiguration_options,
logConfiguration_secretOptions,
logConfiguration_logDriver,
ManagedAgent (..),
newManagedAgent,
managedAgent_lastStatus,
managedAgent_reason,
managedAgent_name,
managedAgent_lastStartedAt,
ManagedAgentStateChange (..),
newManagedAgentStateChange,
managedAgentStateChange_reason,
managedAgentStateChange_containerName,
managedAgentStateChange_managedAgentName,
managedAgentStateChange_status,
ManagedScaling (..),
newManagedScaling,
managedScaling_status,
managedScaling_maximumScalingStepSize,
managedScaling_targetCapacity,
managedScaling_minimumScalingStepSize,
managedScaling_instanceWarmupPeriod,
MountPoint (..),
newMountPoint,
mountPoint_containerPath,
mountPoint_sourceVolume,
mountPoint_readOnly,
NetworkBinding (..),
newNetworkBinding,
networkBinding_bindIP,
networkBinding_protocol,
networkBinding_hostPort,
networkBinding_containerPort,
NetworkConfiguration (..),
newNetworkConfiguration,
networkConfiguration_awsvpcConfiguration,
NetworkInterface (..),
newNetworkInterface,
networkInterface_ipv6Address,
networkInterface_privateIpv4Address,
networkInterface_attachmentId,
PlacementConstraint (..),
newPlacementConstraint,
placementConstraint_expression,
placementConstraint_type,
PlacementStrategy (..),
newPlacementStrategy,
placementStrategy_field,
placementStrategy_type,
PlatformDevice (..),
newPlatformDevice,
platformDevice_id,
platformDevice_type,
PortMapping (..),
newPortMapping,
portMapping_protocol,
portMapping_hostPort,
portMapping_containerPort,
ProxyConfiguration (..),
newProxyConfiguration,
proxyConfiguration_type,
proxyConfiguration_properties,
proxyConfiguration_containerName,
RepositoryCredentials (..),
newRepositoryCredentials,
repositoryCredentials_credentialsParameter,
Resource (..),
newResource,
resource_stringSetValue,
resource_integerValue,
resource_doubleValue,
resource_longValue,
resource_name,
resource_type,
ResourceRequirement (..),
newResourceRequirement,
resourceRequirement_value,
resourceRequirement_type,
Scale (..),
newScale,
scale_value,
scale_unit,
Secret (..),
newSecret,
secret_name,
secret_valueFrom,
ServiceEvent (..),
newServiceEvent,
serviceEvent_createdAt,
serviceEvent_id,
serviceEvent_message,
ServiceRegistry (..),
newServiceRegistry,
serviceRegistry_registryArn,
serviceRegistry_containerName,
serviceRegistry_containerPort,
serviceRegistry_port,
Session (..),
newSession,
session_streamUrl,
session_tokenValue,
session_sessionId,
Setting (..),
newSetting,
setting_value,
setting_name,
setting_principalArn,
SystemControl (..),
newSystemControl,
systemControl_value,
systemControl_namespace,
Tag (..),
newTag,
tag_value,
tag_key,
Task (..),
newTask,
task_stoppedAt,
task_desiredStatus,
task_overrides,
task_inferenceAccelerators,
task_clusterArn,
task_group,
task_attachments,
task_createdAt,
task_stopCode,
task_platformVersion,
task_taskArn,
task_containerInstanceArn,
task_executionStoppedAt,
task_ephemeralStorage,
task_lastStatus,
task_memory,
task_pullStoppedAt,
task_containers,
task_startedAt,
task_availabilityZone,
task_attributes,
task_version,
task_capacityProviderName,
task_startedBy,
task_stoppedReason,
task_connectivity,
task_stoppingAt,
task_launchType,
task_taskDefinitionArn,
task_healthStatus,
task_connectivityAt,
task_cpu,
task_enableExecuteCommand,
task_pullStartedAt,
task_tags,
TaskDefinition (..),
newTaskDefinition,
taskDefinition_status,
taskDefinition_inferenceAccelerators,
taskDefinition_executionRoleArn,
taskDefinition_requiresCompatibilities,
taskDefinition_ephemeralStorage,
taskDefinition_pidMode,
taskDefinition_family,
taskDefinition_ipcMode,
taskDefinition_containerDefinitions,
taskDefinition_memory,
taskDefinition_proxyConfiguration,
taskDefinition_taskRoleArn,
taskDefinition_deregisteredAt,
taskDefinition_placementConstraints,
taskDefinition_registeredAt,
taskDefinition_networkMode,
taskDefinition_taskDefinitionArn,
taskDefinition_compatibilities,
taskDefinition_registeredBy,
taskDefinition_revision,
taskDefinition_volumes,
taskDefinition_cpu,
taskDefinition_requiresAttributes,
TaskDefinitionPlacementConstraint (..),
newTaskDefinitionPlacementConstraint,
taskDefinitionPlacementConstraint_expression,
taskDefinitionPlacementConstraint_type,
TaskOverride (..),
newTaskOverride,
taskOverride_containerOverrides,
taskOverride_executionRoleArn,
taskOverride_ephemeralStorage,
taskOverride_memory,
taskOverride_taskRoleArn,
taskOverride_inferenceAcceleratorOverrides,
taskOverride_cpu,
TaskSet (..),
newTaskSet,
taskSet_runningCount,
taskSet_status,
taskSet_clusterArn,
taskSet_computedDesiredCount,
taskSet_createdAt,
taskSet_platformVersion,
taskSet_scale,
taskSet_loadBalancers,
taskSet_stabilityStatusAt,
taskSet_pendingCount,
taskSet_taskSetArn,
taskSet_startedBy,
taskSet_id,
taskSet_launchType,
taskSet_updatedAt,
taskSet_serviceArn,
taskSet_taskDefinition,
taskSet_externalId,
taskSet_networkConfiguration,
taskSet_serviceRegistries,
taskSet_capacityProviderStrategy,
taskSet_stabilityStatus,
taskSet_tags,
Tmpfs (..),
newTmpfs,
tmpfs_mountOptions,
tmpfs_containerPath,
tmpfs_size,
Ulimit (..),
newUlimit,
ulimit_name,
ulimit_softLimit,
ulimit_hardLimit,
VersionInfo (..),
newVersionInfo,
versionInfo_agentHash,
versionInfo_agentVersion,
versionInfo_dockerVersion,
Volume (..),
newVolume,
volume_dockerVolumeConfiguration,
volume_fsxWindowsFileServerVolumeConfiguration,
volume_name,
volume_efsVolumeConfiguration,
volume_host,
VolumeFrom (..),
newVolumeFrom,
volumeFrom_sourceContainer,
volumeFrom_readOnly,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECS.Types.AgentUpdateStatus
import Amazonka.ECS.Types.AssignPublicIp
import Amazonka.ECS.Types.Attachment
import Amazonka.ECS.Types.AttachmentStateChange
import Amazonka.ECS.Types.Attribute
import Amazonka.ECS.Types.AutoScalingGroupProvider
import Amazonka.ECS.Types.AutoScalingGroupProviderUpdate
import Amazonka.ECS.Types.AwsVpcConfiguration
import Amazonka.ECS.Types.CapacityProvider
import Amazonka.ECS.Types.CapacityProviderField
import Amazonka.ECS.Types.CapacityProviderStatus
import Amazonka.ECS.Types.CapacityProviderStrategyItem
import Amazonka.ECS.Types.CapacityProviderUpdateStatus
import Amazonka.ECS.Types.Cluster
import Amazonka.ECS.Types.ClusterConfiguration
import Amazonka.ECS.Types.ClusterField
import Amazonka.ECS.Types.ClusterSetting
import Amazonka.ECS.Types.ClusterSettingName
import Amazonka.ECS.Types.Compatibility
import Amazonka.ECS.Types.Connectivity
import Amazonka.ECS.Types.Container
import Amazonka.ECS.Types.ContainerCondition
import Amazonka.ECS.Types.ContainerDefinition
import Amazonka.ECS.Types.ContainerDependency
import Amazonka.ECS.Types.ContainerInstance
import Amazonka.ECS.Types.ContainerInstanceField
import Amazonka.ECS.Types.ContainerInstanceStatus
import Amazonka.ECS.Types.ContainerOverride
import Amazonka.ECS.Types.ContainerService
import Amazonka.ECS.Types.ContainerStateChange
import Amazonka.ECS.Types.Deployment
import Amazonka.ECS.Types.DeploymentCircuitBreaker
import Amazonka.ECS.Types.DeploymentConfiguration
import Amazonka.ECS.Types.DeploymentController
import Amazonka.ECS.Types.DeploymentControllerType
import Amazonka.ECS.Types.DeploymentRolloutState
import Amazonka.ECS.Types.DesiredStatus
import Amazonka.ECS.Types.Device
import Amazonka.ECS.Types.DeviceCgroupPermission
import Amazonka.ECS.Types.DockerVolumeConfiguration
import Amazonka.ECS.Types.EFSAuthorizationConfig
import Amazonka.ECS.Types.EFSAuthorizationConfigIAM
import Amazonka.ECS.Types.EFSTransitEncryption
import Amazonka.ECS.Types.EFSVolumeConfiguration
import Amazonka.ECS.Types.EnvironmentFile
import Amazonka.ECS.Types.EnvironmentFileType
import Amazonka.ECS.Types.EphemeralStorage
import Amazonka.ECS.Types.ExecuteCommandConfiguration
import Amazonka.ECS.Types.ExecuteCommandLogConfiguration
import Amazonka.ECS.Types.ExecuteCommandLogging
import Amazonka.ECS.Types.FSxWindowsFileServerAuthorizationConfig
import Amazonka.ECS.Types.FSxWindowsFileServerVolumeConfiguration
import Amazonka.ECS.Types.Failure
import Amazonka.ECS.Types.FirelensConfiguration
import Amazonka.ECS.Types.FirelensConfigurationType
import Amazonka.ECS.Types.HealthCheck
import Amazonka.ECS.Types.HealthStatus
import Amazonka.ECS.Types.HostEntry
import Amazonka.ECS.Types.HostVolumeProperties
import Amazonka.ECS.Types.InferenceAccelerator
import Amazonka.ECS.Types.InferenceAcceleratorOverride
import Amazonka.ECS.Types.IpcMode
import Amazonka.ECS.Types.KernelCapabilities
import Amazonka.ECS.Types.KeyValuePair
import Amazonka.ECS.Types.LaunchType
import Amazonka.ECS.Types.LinuxParameters
import Amazonka.ECS.Types.LoadBalancer
import Amazonka.ECS.Types.LogConfiguration
import Amazonka.ECS.Types.LogDriver
import Amazonka.ECS.Types.ManagedAgent
import Amazonka.ECS.Types.ManagedAgentName
import Amazonka.ECS.Types.ManagedAgentStateChange
import Amazonka.ECS.Types.ManagedScaling
import Amazonka.ECS.Types.ManagedScalingStatus
import Amazonka.ECS.Types.ManagedTerminationProtection
import Amazonka.ECS.Types.MountPoint
import Amazonka.ECS.Types.NetworkBinding
import Amazonka.ECS.Types.NetworkConfiguration
import Amazonka.ECS.Types.NetworkInterface
import Amazonka.ECS.Types.NetworkMode
import Amazonka.ECS.Types.PidMode
import Amazonka.ECS.Types.PlacementConstraint
import Amazonka.ECS.Types.PlacementConstraintType
import Amazonka.ECS.Types.PlacementStrategy
import Amazonka.ECS.Types.PlacementStrategyType
import Amazonka.ECS.Types.PlatformDevice
import Amazonka.ECS.Types.PlatformDeviceType
import Amazonka.ECS.Types.PortMapping
import Amazonka.ECS.Types.PropagateTags
import Amazonka.ECS.Types.ProxyConfiguration
import Amazonka.ECS.Types.ProxyConfigurationType
import Amazonka.ECS.Types.RepositoryCredentials
import Amazonka.ECS.Types.Resource
import Amazonka.ECS.Types.ResourceRequirement
import Amazonka.ECS.Types.ResourceType
import Amazonka.ECS.Types.Scale
import Amazonka.ECS.Types.ScaleUnit
import Amazonka.ECS.Types.SchedulingStrategy
import Amazonka.ECS.Types.Scope
import Amazonka.ECS.Types.Secret
import Amazonka.ECS.Types.ServiceEvent
import Amazonka.ECS.Types.ServiceField
import Amazonka.ECS.Types.ServiceRegistry
import Amazonka.ECS.Types.Session
import Amazonka.ECS.Types.Setting
import Amazonka.ECS.Types.SettingName
import Amazonka.ECS.Types.SortOrder
import Amazonka.ECS.Types.StabilityStatus
import Amazonka.ECS.Types.SystemControl
import Amazonka.ECS.Types.Tag
import Amazonka.ECS.Types.TargetType
import Amazonka.ECS.Types.Task
import Amazonka.ECS.Types.TaskDefinition
import Amazonka.ECS.Types.TaskDefinitionFamilyStatus
import Amazonka.ECS.Types.TaskDefinitionField
import Amazonka.ECS.Types.TaskDefinitionPlacementConstraint
import Amazonka.ECS.Types.TaskDefinitionPlacementConstraintType
import Amazonka.ECS.Types.TaskDefinitionStatus
import Amazonka.ECS.Types.TaskField
import Amazonka.ECS.Types.TaskOverride
import Amazonka.ECS.Types.TaskSet
import Amazonka.ECS.Types.TaskSetField
import Amazonka.ECS.Types.TaskStopCode
import Amazonka.ECS.Types.Tmpfs
import Amazonka.ECS.Types.TransportProtocol
import Amazonka.ECS.Types.Ulimit
import Amazonka.ECS.Types.UlimitName
import Amazonka.ECS.Types.VersionInfo
import Amazonka.ECS.Types.Volume
import Amazonka.ECS.Types.VolumeFrom
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Service :: Abbrev
-> Signer
-> ByteString
-> ByteString
-> ByteString
-> (Region -> Endpoint)
-> Maybe Seconds
-> (Status -> Bool)
-> (Status -> [Header] -> ByteStringLazy -> Error)
-> Retry
-> Service
Core.Service
{ $sel:_serviceAbbrev:Service :: Abbrev
Core._serviceAbbrev = Abbrev
"ECS",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"ecs",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"ecs",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2014-11-13",
$sel:_serviceEndpoint:Service :: Region -> Endpoint
Core._serviceEndpoint =
Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:_serviceTimeout:Service :: Maybe Seconds
Core._serviceTimeout = Seconds -> Maybe Seconds
forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:_serviceCheck:Service :: Status -> Bool
Core._serviceCheck = Status -> Bool
Core.statusSuccess,
$sel:_serviceError:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core._serviceError = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"ECS",
$sel:_serviceRetry:Service :: Retry
Core._serviceRetry = Retry
retry
}
where
retry :: Retry
retry =
Exponential :: Double -> Int -> Int -> (ServiceError -> Maybe Text) -> Retry
Core.Exponential
{ $sel:_retryBase:Exponential :: Double
Core._retryBase = Double
5.0e-2,
$sel:_retryGrowth:Exponential :: Int
Core._retryGrowth = Int
2,
$sel:_retryAttempts:Exponential :: Int
Core._retryAttempts = Int
5,
$sel:_retryCheck:Exponential :: ServiceError -> Maybe Text
Core._retryCheck = ServiceError -> Maybe Text
forall a. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| Bool
Prelude.otherwise = Maybe a
forall a. Maybe a
Prelude.Nothing
_AccessDeniedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AccessDeniedException :: Getting (First ServiceError) a ServiceError
_AccessDeniedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
_InvalidParameterException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidParameterException :: Getting (First ServiceError) a ServiceError
_InvalidParameterException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidParameterException"
_ServerException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServerException :: Getting (First ServiceError) a ServiceError
_ServerException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServerException"
_ClusterContainsTasksException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ClusterContainsTasksException :: Getting (First ServiceError) a ServiceError
_ClusterContainsTasksException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ClusterContainsTasksException"
_PlatformUnknownException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PlatformUnknownException :: Getting (First ServiceError) a ServiceError
_PlatformUnknownException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PlatformUnknownException"
_ClusterContainsServicesException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ClusterContainsServicesException :: Getting (First ServiceError) a ServiceError
_ClusterContainsServicesException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ClusterContainsServicesException"
_TaskSetNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TaskSetNotFoundException :: Getting (First ServiceError) a ServiceError
_TaskSetNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TaskSetNotFoundException"
_ClusterContainsContainerInstancesException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ClusterContainsContainerInstancesException :: Getting (First ServiceError) a ServiceError
_ClusterContainsContainerInstancesException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ClusterContainsContainerInstancesException"
_ServiceNotActiveException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceNotActiveException :: Getting (First ServiceError) a ServiceError
_ServiceNotActiveException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceNotActiveException"
_ClusterNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ClusterNotFoundException :: Getting (First ServiceError) a ServiceError
_ClusterNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ClusterNotFoundException"
_NoUpdateAvailableException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_NoUpdateAvailableException :: Getting (First ServiceError) a ServiceError
_NoUpdateAvailableException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NoUpdateAvailableException"
_UnsupportedFeatureException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UnsupportedFeatureException :: Getting (First ServiceError) a ServiceError
_UnsupportedFeatureException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnsupportedFeatureException"
_ServiceNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceNotFoundException :: Getting (First ServiceError) a ServiceError
_ServiceNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceNotFoundException"
_PlatformTaskDefinitionIncompatibilityException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PlatformTaskDefinitionIncompatibilityException :: Getting (First ServiceError) a ServiceError
_PlatformTaskDefinitionIncompatibilityException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PlatformTaskDefinitionIncompatibilityException"
_MissingVersionException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_MissingVersionException :: Getting (First ServiceError) a ServiceError
_MissingVersionException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"MissingVersionException"
_UpdateInProgressException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UpdateInProgressException :: Getting (First ServiceError) a ServiceError
_UpdateInProgressException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UpdateInProgressException"
_TargetNotConnectedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TargetNotConnectedException :: Getting (First ServiceError) a ServiceError
_TargetNotConnectedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TargetNotConnectedException"
_BlockedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_BlockedException :: Getting (First ServiceError) a ServiceError
_BlockedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BlockedException"
_TargetNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TargetNotFoundException :: Getting (First ServiceError) a ServiceError
_TargetNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TargetNotFoundException"
_AttributeLimitExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AttributeLimitExceededException :: Getting (First ServiceError) a ServiceError
_AttributeLimitExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AttributeLimitExceededException"
_ClientException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ClientException :: Getting (First ServiceError) a ServiceError
_ClientException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ClientException"
_ResourceNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceNotFoundException :: Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
_LimitExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_LimitExceededException :: Getting (First ServiceError) a ServiceError
_LimitExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
_ResourceInUseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceInUseException :: Getting (First ServiceError) a ServiceError
_ResourceInUseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceInUseException"