Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.
Registers an EC2 instance into the specified cluster. This instance becomes available to place containers on.
Synopsis
- data RegisterContainerInstance = RegisterContainerInstance' {}
- newRegisterContainerInstance :: RegisterContainerInstance
- registerContainerInstance_attributes :: Lens' RegisterContainerInstance (Maybe [Attribute])
- registerContainerInstance_cluster :: Lens' RegisterContainerInstance (Maybe Text)
- registerContainerInstance_containerInstanceArn :: Lens' RegisterContainerInstance (Maybe Text)
- registerContainerInstance_instanceIdentityDocument :: Lens' RegisterContainerInstance (Maybe Text)
- registerContainerInstance_instanceIdentityDocumentSignature :: Lens' RegisterContainerInstance (Maybe Text)
- registerContainerInstance_platformDevices :: Lens' RegisterContainerInstance (Maybe [PlatformDevice])
- registerContainerInstance_tags :: Lens' RegisterContainerInstance (Maybe [Tag])
- registerContainerInstance_totalResources :: Lens' RegisterContainerInstance (Maybe [Resource])
- registerContainerInstance_versionInfo :: Lens' RegisterContainerInstance (Maybe VersionInfo)
- data RegisterContainerInstanceResponse = RegisterContainerInstanceResponse' {}
- newRegisterContainerInstanceResponse :: Int -> RegisterContainerInstanceResponse
- registerContainerInstanceResponse_containerInstance :: Lens' RegisterContainerInstanceResponse (Maybe ContainerInstance)
- registerContainerInstanceResponse_httpStatus :: Lens' RegisterContainerInstanceResponse Int
Creating a Request
data RegisterContainerInstance Source #
See: newRegisterContainerInstance
smart constructor.
RegisterContainerInstance' | |
|
Instances
newRegisterContainerInstance :: RegisterContainerInstance Source #
Create a value of RegisterContainerInstance
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:
RegisterContainerInstance
, registerContainerInstance_attributes
- The container instance attributes that this container instance supports.
$sel:cluster:RegisterContainerInstance'
, registerContainerInstance_cluster
- The short name or full Amazon Resource Name (ARN) of the cluster to
register your container instance with. If you do not specify a cluster,
the default cluster is assumed.
RegisterContainerInstance
, registerContainerInstance_containerInstanceArn
- The ARN of the container instance (if it was previously registered).
$sel:instanceIdentityDocument:RegisterContainerInstance'
, registerContainerInstance_instanceIdentityDocument
- The instance identity document for the EC2 instance to register. This
document can be found by running the following command from the
instance:
curl http://169.254.169.254/latest/dynamic/instance-identity/document/
$sel:instanceIdentityDocumentSignature:RegisterContainerInstance'
, registerContainerInstance_instanceIdentityDocumentSignature
- The instance identity document signature for the EC2 instance to
register. This signature can be found by running the following command
from the instance:
curl http://169.254.169.254/latest/dynamic/instance-identity/signature/
$sel:platformDevices:RegisterContainerInstance'
, registerContainerInstance_platformDevices
- The devices that are available on the container instance. The only
supported device type is a GPU.
RegisterContainerInstance
, registerContainerInstance_tags
- The metadata that you apply to the container instance to help you
categorize and organize them. Each tag consists of a key and an optional
value. You define both.
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:totalResources:RegisterContainerInstance'
, registerContainerInstance_totalResources
- The resources available on the instance.
RegisterContainerInstance
, registerContainerInstance_versionInfo
- The version information for the Amazon ECS container agent and Docker
daemon that runs on the container instance.
Request Lenses
registerContainerInstance_attributes :: Lens' RegisterContainerInstance (Maybe [Attribute]) Source #
The container instance attributes that this container instance supports.
registerContainerInstance_cluster :: Lens' RegisterContainerInstance (Maybe Text) Source #
The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with. If you do not specify a cluster, the default cluster is assumed.
registerContainerInstance_containerInstanceArn :: Lens' RegisterContainerInstance (Maybe Text) Source #
The ARN of the container instance (if it was previously registered).
registerContainerInstance_instanceIdentityDocument :: Lens' RegisterContainerInstance (Maybe Text) Source #
The instance identity document for the EC2 instance to register. This
document can be found by running the following command from the
instance:
curl http://169.254.169.254/latest/dynamic/instance-identity/document/
registerContainerInstance_instanceIdentityDocumentSignature :: Lens' RegisterContainerInstance (Maybe Text) Source #
The instance identity document signature for the EC2 instance to
register. This signature can be found by running the following command
from the instance:
curl http://169.254.169.254/latest/dynamic/instance-identity/signature/
registerContainerInstance_platformDevices :: Lens' RegisterContainerInstance (Maybe [PlatformDevice]) Source #
The devices that are available on the container instance. The only supported device type is a GPU.
registerContainerInstance_tags :: Lens' RegisterContainerInstance (Maybe [Tag]) Source #
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
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.
registerContainerInstance_totalResources :: Lens' RegisterContainerInstance (Maybe [Resource]) Source #
The resources available on the instance.
registerContainerInstance_versionInfo :: Lens' RegisterContainerInstance (Maybe VersionInfo) Source #
The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.
Destructuring the Response
data RegisterContainerInstanceResponse Source #
See: newRegisterContainerInstanceResponse
smart constructor.
RegisterContainerInstanceResponse' | |
|
Instances
Generic RegisterContainerInstanceResponse Source # | |
Read RegisterContainerInstanceResponse Source # | |
Show RegisterContainerInstanceResponse Source # | |
Defined in Amazonka.ECS.RegisterContainerInstance | |
NFData RegisterContainerInstanceResponse Source # | |
Defined in Amazonka.ECS.RegisterContainerInstance rnf :: RegisterContainerInstanceResponse -> () # | |
Eq RegisterContainerInstanceResponse Source # | |
type Rep RegisterContainerInstanceResponse Source # | |
Defined in Amazonka.ECS.RegisterContainerInstance type Rep RegisterContainerInstanceResponse = D1 ('MetaData "RegisterContainerInstanceResponse" "Amazonka.ECS.RegisterContainerInstance" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "RegisterContainerInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContainerInstance)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newRegisterContainerInstanceResponse Source #
Create a value of RegisterContainerInstanceResponse
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:containerInstance:RegisterContainerInstanceResponse'
, registerContainerInstanceResponse_containerInstance
- The container instance that was registered.
$sel:httpStatus:RegisterContainerInstanceResponse'
, registerContainerInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
registerContainerInstanceResponse_containerInstance :: Lens' RegisterContainerInstanceResponse (Maybe ContainerInstance) Source #
The container instance that was registered.
registerContainerInstanceResponse_httpStatus :: Lens' RegisterContainerInstanceResponse Int Source #
The response's http status code.