| 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 |
Amazonka.ELBV2.SetSecurityGroups
Description
Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.
You can't specify a security group for a Network Load Balancer or Gateway Load Balancer.
Synopsis
- data SetSecurityGroups = SetSecurityGroups' {
- loadBalancerArn :: Text
- securityGroups :: [Text]
- newSetSecurityGroups :: Text -> SetSecurityGroups
- setSecurityGroups_loadBalancerArn :: Lens' SetSecurityGroups Text
- setSecurityGroups_securityGroups :: Lens' SetSecurityGroups [Text]
- data SetSecurityGroupsResponse = SetSecurityGroupsResponse' {
- securityGroupIds :: Maybe [Text]
- httpStatus :: Int
- newSetSecurityGroupsResponse :: Int -> SetSecurityGroupsResponse
- setSecurityGroupsResponse_securityGroupIds :: Lens' SetSecurityGroupsResponse (Maybe [Text])
- setSecurityGroupsResponse_httpStatus :: Lens' SetSecurityGroupsResponse Int
Creating a Request
data SetSecurityGroups Source #
See: newSetSecurityGroups smart constructor.
Constructors
| SetSecurityGroups' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SetSecurityGroups |
Create a value of SetSecurityGroups 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:
SetSecurityGroups, setSecurityGroups_loadBalancerArn - The Amazon Resource Name (ARN) of the load balancer.
SetSecurityGroups, setSecurityGroups_securityGroups - The IDs of the security groups.
Request Lenses
setSecurityGroups_loadBalancerArn :: Lens' SetSecurityGroups Text Source #
The Amazon Resource Name (ARN) of the load balancer.
setSecurityGroups_securityGroups :: Lens' SetSecurityGroups [Text] Source #
The IDs of the security groups.
Destructuring the Response
data SetSecurityGroupsResponse Source #
See: newSetSecurityGroupsResponse smart constructor.
Constructors
| SetSecurityGroupsResponse' | |
Fields
| |
Instances
newSetSecurityGroupsResponse Source #
Create a value of SetSecurityGroupsResponse 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:securityGroupIds:SetSecurityGroupsResponse', setSecurityGroupsResponse_securityGroupIds - The IDs of the security groups associated with the load balancer.
$sel:httpStatus:SetSecurityGroupsResponse', setSecurityGroupsResponse_httpStatus - The response's http status code.
Response Lenses
setSecurityGroupsResponse_securityGroupIds :: Lens' SetSecurityGroupsResponse (Maybe [Text]) Source #
The IDs of the security groups associated with the load balancer.
setSecurityGroupsResponse_httpStatus :: Lens' SetSecurityGroupsResponse Int Source #
The response's http status code.