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 deployment for your Amazon Lightsail container service.
A deployment specifies the containers that will be launched on the container service and their settings, such as the ports to open, the environment variables to apply, and the launch command to run. It also specifies the container that will serve as the public endpoint of the deployment and its settings, such as the HTTP or HTTPS port to use, and the health check configuration.
You can deploy containers to your container service using container images from a public registry like Docker Hub, or from your local machine. For more information, see Creating container images for your Amazon Lightsail container services in the Amazon Lightsail Developer Guide.
Synopsis
- data CreateContainerServiceDeployment = CreateContainerServiceDeployment' {}
- newCreateContainerServiceDeployment :: Text -> CreateContainerServiceDeployment
- createContainerServiceDeployment_publicEndpoint :: Lens' CreateContainerServiceDeployment (Maybe EndpointRequest)
- createContainerServiceDeployment_containers :: Lens' CreateContainerServiceDeployment (Maybe (HashMap Text Container))
- createContainerServiceDeployment_serviceName :: Lens' CreateContainerServiceDeployment Text
- data CreateContainerServiceDeploymentResponse = CreateContainerServiceDeploymentResponse' {}
- newCreateContainerServiceDeploymentResponse :: Int -> CreateContainerServiceDeploymentResponse
- createContainerServiceDeploymentResponse_containerService :: Lens' CreateContainerServiceDeploymentResponse (Maybe ContainerService)
- createContainerServiceDeploymentResponse_httpStatus :: Lens' CreateContainerServiceDeploymentResponse Int
Creating a Request
data CreateContainerServiceDeployment Source #
See: newCreateContainerServiceDeployment
smart constructor.
CreateContainerServiceDeployment' | |
|
Instances
newCreateContainerServiceDeployment Source #
Create a value of CreateContainerServiceDeployment
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:publicEndpoint:CreateContainerServiceDeployment'
, createContainerServiceDeployment_publicEndpoint
- An object that describes the settings of the public endpoint for the
container service.
$sel:containers:CreateContainerServiceDeployment'
, createContainerServiceDeployment_containers
- An object that describes the settings of the containers that will be
launched on the container service.
$sel:serviceName:CreateContainerServiceDeployment'
, createContainerServiceDeployment_serviceName
- The name of the container service for which to create the deployment.
Request Lenses
createContainerServiceDeployment_publicEndpoint :: Lens' CreateContainerServiceDeployment (Maybe EndpointRequest) Source #
An object that describes the settings of the public endpoint for the container service.
createContainerServiceDeployment_containers :: Lens' CreateContainerServiceDeployment (Maybe (HashMap Text Container)) Source #
An object that describes the settings of the containers that will be launched on the container service.
createContainerServiceDeployment_serviceName :: Lens' CreateContainerServiceDeployment Text Source #
The name of the container service for which to create the deployment.
Destructuring the Response
data CreateContainerServiceDeploymentResponse Source #
See: newCreateContainerServiceDeploymentResponse
smart constructor.
CreateContainerServiceDeploymentResponse' | |
|
Instances
newCreateContainerServiceDeploymentResponse Source #
Create a value of CreateContainerServiceDeploymentResponse
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:containerService:CreateContainerServiceDeploymentResponse'
, createContainerServiceDeploymentResponse_containerService
- An object that describes a container service.
$sel:httpStatus:CreateContainerServiceDeploymentResponse'
, createContainerServiceDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
createContainerServiceDeploymentResponse_containerService :: Lens' CreateContainerServiceDeploymentResponse (Maybe ContainerService) Source #
An object that describes a container service.
createContainerServiceDeploymentResponse_httpStatus :: Lens' CreateContainerServiceDeploymentResponse Int Source #
The response's http status code.