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 |
- VPC only
- Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
Synopsis
- data UpdateSecurityGroupRuleDescriptionsEgress = UpdateSecurityGroupRuleDescriptionsEgress' {}
- newUpdateSecurityGroupRuleDescriptionsEgress :: UpdateSecurityGroupRuleDescriptionsEgress
- updateSecurityGroupRuleDescriptionsEgress_dryRun :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe Bool)
- updateSecurityGroupRuleDescriptionsEgress_groupId :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe Text)
- updateSecurityGroupRuleDescriptionsEgress_groupName :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe Text)
- updateSecurityGroupRuleDescriptionsEgress_ipPermissions :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe [IpPermission])
- updateSecurityGroupRuleDescriptionsEgress_securityGroupRuleDescriptions :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe [SecurityGroupRuleDescription])
- data UpdateSecurityGroupRuleDescriptionsEgressResponse = UpdateSecurityGroupRuleDescriptionsEgressResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newUpdateSecurityGroupRuleDescriptionsEgressResponse :: Int -> UpdateSecurityGroupRuleDescriptionsEgressResponse
- updateSecurityGroupRuleDescriptionsEgressResponse_return :: Lens' UpdateSecurityGroupRuleDescriptionsEgressResponse (Maybe Bool)
- updateSecurityGroupRuleDescriptionsEgressResponse_httpStatus :: Lens' UpdateSecurityGroupRuleDescriptionsEgressResponse Int
Creating a Request
data UpdateSecurityGroupRuleDescriptionsEgress Source #
See: newUpdateSecurityGroupRuleDescriptionsEgress
smart constructor.
UpdateSecurityGroupRuleDescriptionsEgress' | |
|
Instances
newUpdateSecurityGroupRuleDescriptionsEgress :: UpdateSecurityGroupRuleDescriptionsEgress Source #
Create a value of UpdateSecurityGroupRuleDescriptionsEgress
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:dryRun:UpdateSecurityGroupRuleDescriptionsEgress'
, updateSecurityGroupRuleDescriptionsEgress_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
UpdateSecurityGroupRuleDescriptionsEgress
, updateSecurityGroupRuleDescriptionsEgress_groupId
- The ID of the security group. You must specify either the security group
ID or the security group name in the request. For security groups in a
nondefault VPC, you must specify the security group ID.
UpdateSecurityGroupRuleDescriptionsEgress
, updateSecurityGroupRuleDescriptionsEgress_groupName
- [Default VPC] The name of the security group. You must specify either
the security group ID or the security group name in the request.
UpdateSecurityGroupRuleDescriptionsEgress
, updateSecurityGroupRuleDescriptionsEgress_ipPermissions
- The IP permissions for the security group rule. You must specify either
the IP permissions or the description.
$sel:securityGroupRuleDescriptions:UpdateSecurityGroupRuleDescriptionsEgress'
, updateSecurityGroupRuleDescriptionsEgress_securityGroupRuleDescriptions
- The description for the egress security group rules. You must specify
either the description or the IP permissions.
Request Lenses
updateSecurityGroupRuleDescriptionsEgress_dryRun :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
updateSecurityGroupRuleDescriptionsEgress_groupId :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe Text) Source #
The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
updateSecurityGroupRuleDescriptionsEgress_groupName :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe Text) Source #
- Default VPC
- The name of the security group. You must specify either the security group ID or the security group name in the request.
updateSecurityGroupRuleDescriptionsEgress_ipPermissions :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe [IpPermission]) Source #
The IP permissions for the security group rule. You must specify either the IP permissions or the description.
updateSecurityGroupRuleDescriptionsEgress_securityGroupRuleDescriptions :: Lens' UpdateSecurityGroupRuleDescriptionsEgress (Maybe [SecurityGroupRuleDescription]) Source #
The description for the egress security group rules. You must specify either the description or the IP permissions.
Destructuring the Response
data UpdateSecurityGroupRuleDescriptionsEgressResponse Source #
See: newUpdateSecurityGroupRuleDescriptionsEgressResponse
smart constructor.
UpdateSecurityGroupRuleDescriptionsEgressResponse' | |
|
Instances
Generic UpdateSecurityGroupRuleDescriptionsEgressResponse Source # | |
Read UpdateSecurityGroupRuleDescriptionsEgressResponse Source # | |
Show UpdateSecurityGroupRuleDescriptionsEgressResponse Source # | |
NFData UpdateSecurityGroupRuleDescriptionsEgressResponse Source # | |
Eq UpdateSecurityGroupRuleDescriptionsEgressResponse Source # | |
type Rep UpdateSecurityGroupRuleDescriptionsEgressResponse Source # | |
Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsEgress type Rep UpdateSecurityGroupRuleDescriptionsEgressResponse = D1 ('MetaData "UpdateSecurityGroupRuleDescriptionsEgressResponse" "Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsEgress" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "UpdateSecurityGroupRuleDescriptionsEgressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateSecurityGroupRuleDescriptionsEgressResponse Source #
:: Int |
|
-> UpdateSecurityGroupRuleDescriptionsEgressResponse |
Create a value of UpdateSecurityGroupRuleDescriptionsEgressResponse
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:return':UpdateSecurityGroupRuleDescriptionsEgressResponse'
, updateSecurityGroupRuleDescriptionsEgressResponse_return
- Returns true
if the request succeeds; otherwise, returns an error.
$sel:httpStatus:UpdateSecurityGroupRuleDescriptionsEgressResponse'
, updateSecurityGroupRuleDescriptionsEgressResponse_httpStatus
- The response's http status code.
Response Lenses
updateSecurityGroupRuleDescriptionsEgressResponse_return :: Lens' UpdateSecurityGroupRuleDescriptionsEgressResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, returns an error.
updateSecurityGroupRuleDescriptionsEgressResponse_httpStatus :: Lens' UpdateSecurityGroupRuleDescriptionsEgressResponse Int Source #
The response's http status code.