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 |
Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.
For more information, see Security Groups for Load Balancers in a VPC in the Classic Load Balancers Guide.
Synopsis
- data ApplySecurityGroupsToLoadBalancer = ApplySecurityGroupsToLoadBalancer' {
- loadBalancerName :: Text
- securityGroups :: [Text]
- newApplySecurityGroupsToLoadBalancer :: Text -> ApplySecurityGroupsToLoadBalancer
- applySecurityGroupsToLoadBalancer_loadBalancerName :: Lens' ApplySecurityGroupsToLoadBalancer Text
- applySecurityGroupsToLoadBalancer_securityGroups :: Lens' ApplySecurityGroupsToLoadBalancer [Text]
- data ApplySecurityGroupsToLoadBalancerResponse = ApplySecurityGroupsToLoadBalancerResponse' {
- securityGroups :: Maybe [Text]
- httpStatus :: Int
- newApplySecurityGroupsToLoadBalancerResponse :: Int -> ApplySecurityGroupsToLoadBalancerResponse
- applySecurityGroupsToLoadBalancerResponse_securityGroups :: Lens' ApplySecurityGroupsToLoadBalancerResponse (Maybe [Text])
- applySecurityGroupsToLoadBalancerResponse_httpStatus :: Lens' ApplySecurityGroupsToLoadBalancerResponse Int
Creating a Request
data ApplySecurityGroupsToLoadBalancer Source #
Contains the parameters for ApplySecurityGroupsToLoadBalancer.
See: newApplySecurityGroupsToLoadBalancer
smart constructor.
ApplySecurityGroupsToLoadBalancer' | |
|
Instances
newApplySecurityGroupsToLoadBalancer Source #
Create a value of ApplySecurityGroupsToLoadBalancer
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:loadBalancerName:ApplySecurityGroupsToLoadBalancer'
, applySecurityGroupsToLoadBalancer_loadBalancerName
- The name of the load balancer.
$sel:securityGroups:ApplySecurityGroupsToLoadBalancer'
, applySecurityGroupsToLoadBalancer_securityGroups
- The IDs of the security groups to associate with the load balancer. Note
that you cannot specify the name of the security group.
Request Lenses
applySecurityGroupsToLoadBalancer_loadBalancerName :: Lens' ApplySecurityGroupsToLoadBalancer Text Source #
The name of the load balancer.
applySecurityGroupsToLoadBalancer_securityGroups :: Lens' ApplySecurityGroupsToLoadBalancer [Text] Source #
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
Destructuring the Response
data ApplySecurityGroupsToLoadBalancerResponse Source #
Contains the output of ApplySecurityGroupsToLoadBalancer.
See: newApplySecurityGroupsToLoadBalancerResponse
smart constructor.
ApplySecurityGroupsToLoadBalancerResponse' | |
|
Instances
newApplySecurityGroupsToLoadBalancerResponse Source #
Create a value of ApplySecurityGroupsToLoadBalancerResponse
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:securityGroups:ApplySecurityGroupsToLoadBalancer'
, applySecurityGroupsToLoadBalancerResponse_securityGroups
- The IDs of the security groups associated with the load balancer.
$sel:httpStatus:ApplySecurityGroupsToLoadBalancerResponse'
, applySecurityGroupsToLoadBalancerResponse_httpStatus
- The response's http status code.
Response Lenses
applySecurityGroupsToLoadBalancerResponse_securityGroups :: Lens' ApplySecurityGroupsToLoadBalancerResponse (Maybe [Text]) Source #
The IDs of the security groups associated with the load balancer.
applySecurityGroupsToLoadBalancerResponse_httpStatus :: Lens' ApplySecurityGroupsToLoadBalancerResponse Int Source #
The response's http status code.