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 |
Updates the configuration of your Amazon Lightsail container service, such as its power, scale, and public domain names.
Synopsis
- data UpdateContainerService = UpdateContainerService' {}
- newUpdateContainerService :: Text -> UpdateContainerService
- updateContainerService_scale :: Lens' UpdateContainerService (Maybe Natural)
- updateContainerService_power :: Lens' UpdateContainerService (Maybe ContainerServicePowerName)
- updateContainerService_isDisabled :: Lens' UpdateContainerService (Maybe Bool)
- updateContainerService_publicDomainNames :: Lens' UpdateContainerService (Maybe (HashMap Text [Text]))
- updateContainerService_serviceName :: Lens' UpdateContainerService Text
- data UpdateContainerServiceResponse = UpdateContainerServiceResponse' {}
- newUpdateContainerServiceResponse :: Int -> UpdateContainerServiceResponse
- updateContainerServiceResponse_containerService :: Lens' UpdateContainerServiceResponse (Maybe ContainerService)
- updateContainerServiceResponse_httpStatus :: Lens' UpdateContainerServiceResponse Int
Creating a Request
data UpdateContainerService Source #
See: newUpdateContainerService
smart constructor.
UpdateContainerService' | |
|
Instances
newUpdateContainerService Source #
Create a value of UpdateContainerService
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:scale:UpdateContainerService'
, updateContainerService_scale
- The scale for the container service.
The scale specifies the allocated compute nodes of the container
service. The power
and scale
of a container service makes up its
configured capacity. To determine the monthly price of your container
service, multiply the base price of the power
with the scale
(the
number of nodes) of the service.
$sel:power:UpdateContainerService'
, updateContainerService_power
- The power for the container service.
The power specifies the amount of memory, vCPUs, and base monthly cost
of each node of the container service. The power
and scale
of a
container service makes up its configured capacity. To determine the
monthly price of your container service, multiply the base price of the
power
with the scale
(the number of nodes) of the service.
Use the GetContainerServicePowers
action to view the specifications of
each power option.
$sel:isDisabled:UpdateContainerService'
, updateContainerService_isDisabled
- A Boolean value to indicate whether the container service is disabled.
$sel:publicDomainNames:UpdateContainerService'
, updateContainerService_publicDomainNames
- The public domain names to use with the container service, such as
example.com
and www.example.com
.
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use
public domain names with your container service. Use the
CreateCertificate
action to create a certificate for the public domain
names you want to use with your container service.
You can specify public domain names using a string to array map as shown in the example later on this page.
$sel:serviceName:UpdateContainerService'
, updateContainerService_serviceName
- The name of the container service to update.
Request Lenses
updateContainerService_scale :: Lens' UpdateContainerService (Maybe Natural) Source #
The scale for the container service.
The scale specifies the allocated compute nodes of the container
service. The power
and scale
of a container service makes up its
configured capacity. To determine the monthly price of your container
service, multiply the base price of the power
with the scale
(the
number of nodes) of the service.
updateContainerService_power :: Lens' UpdateContainerService (Maybe ContainerServicePowerName) Source #
The power for the container service.
The power specifies the amount of memory, vCPUs, and base monthly cost
of each node of the container service. The power
and scale
of a
container service makes up its configured capacity. To determine the
monthly price of your container service, multiply the base price of the
power
with the scale
(the number of nodes) of the service.
Use the GetContainerServicePowers
action to view the specifications of
each power option.
updateContainerService_isDisabled :: Lens' UpdateContainerService (Maybe Bool) Source #
A Boolean value to indicate whether the container service is disabled.
updateContainerService_publicDomainNames :: Lens' UpdateContainerService (Maybe (HashMap Text [Text])) Source #
The public domain names to use with the container service, such as
example.com
and www.example.com
.
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use
public domain names with your container service. Use the
CreateCertificate
action to create a certificate for the public domain
names you want to use with your container service.
You can specify public domain names using a string to array map as shown in the example later on this page.
updateContainerService_serviceName :: Lens' UpdateContainerService Text Source #
The name of the container service to update.
Destructuring the Response
data UpdateContainerServiceResponse Source #
See: newUpdateContainerServiceResponse
smart constructor.
UpdateContainerServiceResponse' | |
|
Instances
Eq UpdateContainerServiceResponse Source # | |
Read UpdateContainerServiceResponse Source # | |
Show UpdateContainerServiceResponse Source # | |
Defined in Amazonka.Lightsail.UpdateContainerService | |
Generic UpdateContainerServiceResponse Source # | |
NFData UpdateContainerServiceResponse Source # | |
Defined in Amazonka.Lightsail.UpdateContainerService rnf :: UpdateContainerServiceResponse -> () # | |
type Rep UpdateContainerServiceResponse Source # | |
Defined in Amazonka.Lightsail.UpdateContainerService type Rep UpdateContainerServiceResponse = D1 ('MetaData "UpdateContainerServiceResponse" "Amazonka.Lightsail.UpdateContainerService" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "UpdateContainerServiceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerService") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContainerService)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateContainerServiceResponse Source #
Create a value of UpdateContainerServiceResponse
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:UpdateContainerServiceResponse'
, updateContainerServiceResponse_containerService
- An object that describes a container service.
$sel:httpStatus:UpdateContainerServiceResponse'
, updateContainerServiceResponse_httpStatus
- The response's http status code.
Response Lenses
updateContainerServiceResponse_containerService :: Lens' UpdateContainerServiceResponse (Maybe ContainerService) Source #
An object that describes a container service.
updateContainerServiceResponse_httpStatus :: Lens' UpdateContainerServiceResponse Int Source #
The response's http status code.