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 content and status of IP rules. To use this operation, you
need to provide the entire map of rules. You can use the
DescribeIpRestriction
operation to get the current rule map.
Synopsis
- data UpdateIpRestriction = UpdateIpRestriction' {
- enabled :: Maybe Bool
- ipRestrictionRuleMap :: Maybe (HashMap Text Text)
- awsAccountId :: Text
- newUpdateIpRestriction :: Text -> UpdateIpRestriction
- updateIpRestriction_enabled :: Lens' UpdateIpRestriction (Maybe Bool)
- updateIpRestriction_ipRestrictionRuleMap :: Lens' UpdateIpRestriction (Maybe (HashMap Text Text))
- updateIpRestriction_awsAccountId :: Lens' UpdateIpRestriction Text
- data UpdateIpRestrictionResponse = UpdateIpRestrictionResponse' {}
- newUpdateIpRestrictionResponse :: Int -> UpdateIpRestrictionResponse
- updateIpRestrictionResponse_awsAccountId :: Lens' UpdateIpRestrictionResponse (Maybe Text)
- updateIpRestrictionResponse_requestId :: Lens' UpdateIpRestrictionResponse (Maybe Text)
- updateIpRestrictionResponse_status :: Lens' UpdateIpRestrictionResponse Int
Creating a Request
data UpdateIpRestriction Source #
See: newUpdateIpRestriction
smart constructor.
UpdateIpRestriction' | |
|
Instances
newUpdateIpRestriction Source #
Create a value of UpdateIpRestriction
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:enabled:UpdateIpRestriction'
, updateIpRestriction_enabled
- A value that specifies whether IP rules are turned on.
$sel:ipRestrictionRuleMap:UpdateIpRestriction'
, updateIpRestriction_ipRestrictionRuleMap
- A map that describes the updated IP rules with CIDR ranges and
descriptions.
UpdateIpRestriction
, updateIpRestriction_awsAccountId
- The ID of the Amazon Web Services account that contains the IP rules.
Request Lenses
updateIpRestriction_enabled :: Lens' UpdateIpRestriction (Maybe Bool) Source #
A value that specifies whether IP rules are turned on.
updateIpRestriction_ipRestrictionRuleMap :: Lens' UpdateIpRestriction (Maybe (HashMap Text Text)) Source #
A map that describes the updated IP rules with CIDR ranges and descriptions.
updateIpRestriction_awsAccountId :: Lens' UpdateIpRestriction Text Source #
The ID of the Amazon Web Services account that contains the IP rules.
Destructuring the Response
data UpdateIpRestrictionResponse Source #
See: newUpdateIpRestrictionResponse
smart constructor.
Instances
newUpdateIpRestrictionResponse Source #
Create a value of UpdateIpRestrictionResponse
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:
UpdateIpRestriction
, updateIpRestrictionResponse_awsAccountId
- The ID of the Amazon Web Services account that contains the IP rules.
$sel:requestId:UpdateIpRestrictionResponse'
, updateIpRestrictionResponse_requestId
- The Amazon Web Services request ID for this operation.
UpdateIpRestrictionResponse
, updateIpRestrictionResponse_status
- The HTTP status of the request.
Response Lenses
updateIpRestrictionResponse_awsAccountId :: Lens' UpdateIpRestrictionResponse (Maybe Text) Source #
The ID of the Amazon Web Services account that contains the IP rules.
updateIpRestrictionResponse_requestId :: Lens' UpdateIpRestrictionResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateIpRestrictionResponse_status :: Lens' UpdateIpRestrictionResponse Int Source #
The HTTP status of the request.