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 |
Updates the specified attribute for a load balancer. You can only update one attribute at a time.
The update load balancer attribute
operation supports tag-based access
control via resource tags applied to the resource identified by
load balancer name
. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data UpdateLoadBalancerAttribute = UpdateLoadBalancerAttribute' {}
- newUpdateLoadBalancerAttribute :: Text -> LoadBalancerAttributeName -> Text -> UpdateLoadBalancerAttribute
- updateLoadBalancerAttribute_loadBalancerName :: Lens' UpdateLoadBalancerAttribute Text
- updateLoadBalancerAttribute_attributeName :: Lens' UpdateLoadBalancerAttribute LoadBalancerAttributeName
- updateLoadBalancerAttribute_attributeValue :: Lens' UpdateLoadBalancerAttribute Text
- data UpdateLoadBalancerAttributeResponse = UpdateLoadBalancerAttributeResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newUpdateLoadBalancerAttributeResponse :: Int -> UpdateLoadBalancerAttributeResponse
- updateLoadBalancerAttributeResponse_operations :: Lens' UpdateLoadBalancerAttributeResponse (Maybe [Operation])
- updateLoadBalancerAttributeResponse_httpStatus :: Lens' UpdateLoadBalancerAttributeResponse Int
Creating a Request
data UpdateLoadBalancerAttribute Source #
See: newUpdateLoadBalancerAttribute
smart constructor.
UpdateLoadBalancerAttribute' | |
|
Instances
newUpdateLoadBalancerAttribute Source #
Create a value of UpdateLoadBalancerAttribute
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:
UpdateLoadBalancerAttribute
, updateLoadBalancerAttribute_loadBalancerName
- The name of the load balancer that you want to modify (e.g.,
my-load-balancer
.
$sel:attributeName:UpdateLoadBalancerAttribute'
, updateLoadBalancerAttribute_attributeName
- The name of the attribute you want to update.
$sel:attributeValue:UpdateLoadBalancerAttribute'
, updateLoadBalancerAttribute_attributeValue
- The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the
attributeName
request parameter:
- If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). - If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. - If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. - If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
Request Lenses
updateLoadBalancerAttribute_loadBalancerName :: Lens' UpdateLoadBalancerAttribute Text Source #
The name of the load balancer that you want to modify (e.g.,
my-load-balancer
.
updateLoadBalancerAttribute_attributeName :: Lens' UpdateLoadBalancerAttribute LoadBalancerAttributeName Source #
The name of the attribute you want to update.
updateLoadBalancerAttribute_attributeValue :: Lens' UpdateLoadBalancerAttribute Text Source #
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the
attributeName
request parameter:
- If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). - If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. - If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. - If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
Destructuring the Response
data UpdateLoadBalancerAttributeResponse Source #
See: newUpdateLoadBalancerAttributeResponse
smart constructor.
UpdateLoadBalancerAttributeResponse' | |
|
Instances
Generic UpdateLoadBalancerAttributeResponse Source # | |
Read UpdateLoadBalancerAttributeResponse Source # | |
Show UpdateLoadBalancerAttributeResponse Source # | |
NFData UpdateLoadBalancerAttributeResponse Source # | |
Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute rnf :: UpdateLoadBalancerAttributeResponse -> () # | |
Eq UpdateLoadBalancerAttributeResponse Source # | |
type Rep UpdateLoadBalancerAttributeResponse Source # | |
Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute type Rep UpdateLoadBalancerAttributeResponse = D1 ('MetaData "UpdateLoadBalancerAttributeResponse" "Amazonka.Lightsail.UpdateLoadBalancerAttribute" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "UpdateLoadBalancerAttributeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateLoadBalancerAttributeResponse Source #
Create a value of UpdateLoadBalancerAttributeResponse
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:operations:UpdateLoadBalancerAttributeResponse'
, updateLoadBalancerAttributeResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:UpdateLoadBalancerAttributeResponse'
, updateLoadBalancerAttributeResponse_httpStatus
- The response's http status code.
Response Lenses
updateLoadBalancerAttributeResponse_operations :: Lens' UpdateLoadBalancerAttributeResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
updateLoadBalancerAttributeResponse_httpStatus :: Lens' UpdateLoadBalancerAttributeResponse Int Source #
The response's http status code.