Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates 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.
Only capacity providers using an Auto Scaling group can be created.
Amazon ECS tasks on Fargate use the FARGATE
and FARGATE_SPOT
capacity providers which are already created and available to all
accounts in Regions supported by Fargate.
Synopsis
- data CreateCapacityProvider = CreateCapacityProvider' {}
- newCreateCapacityProvider :: Text -> AutoScalingGroupProvider -> CreateCapacityProvider
- createCapacityProvider_tags :: Lens' CreateCapacityProvider (Maybe [Tag])
- createCapacityProvider_name :: Lens' CreateCapacityProvider Text
- createCapacityProvider_autoScalingGroupProvider :: Lens' CreateCapacityProvider AutoScalingGroupProvider
- data CreateCapacityProviderResponse = CreateCapacityProviderResponse' {}
- newCreateCapacityProviderResponse :: Int -> CreateCapacityProviderResponse
- createCapacityProviderResponse_capacityProvider :: Lens' CreateCapacityProviderResponse (Maybe CapacityProvider)
- createCapacityProviderResponse_httpStatus :: Lens' CreateCapacityProviderResponse Int
Creating a Request
data CreateCapacityProvider Source #
See: newCreateCapacityProvider
smart constructor.
CreateCapacityProvider' | |
|
Instances
newCreateCapacityProvider Source #
Create a value of CreateCapacityProvider
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:CreateCapacityProvider'
, createCapacityProvider_tags
- The metadata that you apply to the capacity provider to help you
categorize and organize them. Each tag consists of a key and an optional
value, both of which you define.
The following basic restrictions apply to tags:
- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
$sel:name:CreateCapacityProvider'
, createCapacityProvider_name
- The name of the capacity provider. Up to 255 characters are allowed,
including letters (upper and lowercase), numbers, underscores, and
hyphens. The name cannot be prefixed with "aws
", "ecs
", or
"fargate
".
$sel:autoScalingGroupProvider:CreateCapacityProvider'
, createCapacityProvider_autoScalingGroupProvider
- The details of the Auto Scaling group for the capacity provider.
Request Lenses
createCapacityProvider_tags :: Lens' CreateCapacityProvider (Maybe [Tag]) Source #
The metadata that you apply to the capacity provider to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
createCapacityProvider_name :: Lens' CreateCapacityProvider Text Source #
The name of the capacity provider. Up to 255 characters are allowed,
including letters (upper and lowercase), numbers, underscores, and
hyphens. The name cannot be prefixed with "aws
", "ecs
", or
"fargate
".
createCapacityProvider_autoScalingGroupProvider :: Lens' CreateCapacityProvider AutoScalingGroupProvider Source #
The details of the Auto Scaling group for the capacity provider.
Destructuring the Response
data CreateCapacityProviderResponse Source #
See: newCreateCapacityProviderResponse
smart constructor.
CreateCapacityProviderResponse' | |
|
Instances
Eq CreateCapacityProviderResponse Source # | |
Read CreateCapacityProviderResponse Source # | |
Show CreateCapacityProviderResponse Source # | |
Defined in Amazonka.ECS.CreateCapacityProvider | |
Generic CreateCapacityProviderResponse Source # | |
NFData CreateCapacityProviderResponse Source # | |
Defined in Amazonka.ECS.CreateCapacityProvider rnf :: CreateCapacityProviderResponse -> () # | |
type Rep CreateCapacityProviderResponse Source # | |
Defined in Amazonka.ECS.CreateCapacityProvider type Rep CreateCapacityProviderResponse = D1 ('MetaData "CreateCapacityProviderResponse" "Amazonka.ECS.CreateCapacityProvider" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "CreateCapacityProviderResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "capacityProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CapacityProvider)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateCapacityProviderResponse Source #
Create a value of CreateCapacityProviderResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:capacityProvider:CreateCapacityProviderResponse'
, createCapacityProviderResponse_capacityProvider
- The full description of the new capacity provider.
$sel:httpStatus:CreateCapacityProviderResponse'
, createCapacityProviderResponse_httpStatus
- The response's http status code.
Response Lenses
createCapacityProviderResponse_capacityProvider :: Lens' CreateCapacityProviderResponse (Maybe CapacityProvider) Source #
The full description of the new capacity provider.
createCapacityProviderResponse_httpStatus :: Lens' CreateCapacityProviderResponse Int Source #
The response's http status code.