amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lightsail.UpdateLoadBalancerAttribute

Description

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

Creating a Request

data UpdateLoadBalancerAttribute Source #

See: newUpdateLoadBalancerAttribute smart constructor.

Constructors

UpdateLoadBalancerAttribute' 

Fields

  • loadBalancerName :: Text

    The name of the load balancer that you want to modify (e.g., my-load-balancer.

  • attributeName :: LoadBalancerAttributeName

    The name of the attribute you want to update.

  • attributeValue :: Text

    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 the attributeName request parameter, then the attributeValue request parameter must be the path to ping on the target (for example, /weather/us/wa/seattle).
    • If you specify SessionStickinessEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate session stickiness or false to deactivate session stickiness.
    • If you specify SessionStickiness_LB_CookieDurationSeconds for the attributeName request parameter, then the attributeValue request parameter must be an interger that represents the cookie duration in seconds.
    • If you specify HttpsRedirectionEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate HTTP to HTTPS redirection or false to deactivate HTTP to HTTPS redirection.
    • If you specify TlsPolicyName for the attributeName request parameter, then the attributeValue 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.

Instances

Instances details
ToJSON UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

ToHeaders UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

ToPath UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

ToQuery UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

AWSRequest UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Generic UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Associated Types

type Rep UpdateLoadBalancerAttribute :: Type -> Type #

Read UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Show UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

NFData UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Eq UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Hashable UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

type AWSResponse UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

type Rep UpdateLoadBalancerAttribute Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

type Rep UpdateLoadBalancerAttribute = D1 ('MetaData "UpdateLoadBalancerAttribute" "Amazonka.Lightsail.UpdateLoadBalancerAttribute" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "UpdateLoadBalancerAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loadBalancerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LoadBalancerAttributeName) :*: S1 ('MetaSel ('Just "attributeValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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 the attributeName request parameter, then the attributeValue request parameter must be the path to ping on the target (for example, /weather/us/wa/seattle).
  • If you specify SessionStickinessEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate session stickiness or false to deactivate session stickiness.
  • If you specify SessionStickiness_LB_CookieDurationSeconds for the attributeName request parameter, then the attributeValue request parameter must be an interger that represents the cookie duration in seconds.
  • If you specify HttpsRedirectionEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate HTTP to HTTPS redirection or false to deactivate HTTP to HTTPS redirection.
  • If you specify TlsPolicyName for the attributeName request parameter, then the attributeValue 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_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 the attributeName request parameter, then the attributeValue request parameter must be the path to ping on the target (for example, /weather/us/wa/seattle).
  • If you specify SessionStickinessEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate session stickiness or false to deactivate session stickiness.
  • If you specify SessionStickiness_LB_CookieDurationSeconds for the attributeName request parameter, then the attributeValue request parameter must be an interger that represents the cookie duration in seconds.
  • If you specify HttpsRedirectionEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate HTTP to HTTPS redirection or false to deactivate HTTP to HTTPS redirection.
  • If you specify TlsPolicyName for the attributeName request parameter, then the attributeValue 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 #

Constructors

UpdateLoadBalancerAttributeResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic UpdateLoadBalancerAttributeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Read UpdateLoadBalancerAttributeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Show UpdateLoadBalancerAttributeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

NFData UpdateLoadBalancerAttributeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

Eq UpdateLoadBalancerAttributeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateLoadBalancerAttribute

type Rep UpdateLoadBalancerAttributeResponse Source # 
Instance details

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.