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 |
Updates content and status of IP Rules.
Synopsis
- data UpdateIpRestriction = UpdateIpRestriction' {
- ipRestrictionRuleMap :: Maybe (HashMap Text Text)
- enabled :: Maybe Bool
- awsAccountId :: Text
- newUpdateIpRestriction :: Text -> UpdateIpRestriction
- updateIpRestriction_ipRestrictionRuleMap :: Lens' UpdateIpRestriction (Maybe (HashMap Text Text))
- updateIpRestriction_enabled :: Lens' UpdateIpRestriction (Maybe Bool)
- updateIpRestriction_awsAccountId :: Lens' UpdateIpRestriction Text
- data UpdateIpRestrictionResponse = UpdateIpRestrictionResponse' {}
- newUpdateIpRestrictionResponse :: Int -> UpdateIpRestrictionResponse
- updateIpRestrictionResponse_requestId :: Lens' UpdateIpRestrictionResponse (Maybe Text)
- updateIpRestrictionResponse_awsAccountId :: 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:ipRestrictionRuleMap:UpdateIpRestriction'
, updateIpRestriction_ipRestrictionRuleMap
- Describes updated IP rules.
$sel:enabled:UpdateIpRestriction'
, updateIpRestriction_enabled
- Whether or not IP rules are enabled.
$sel:awsAccountId:UpdateIpRestriction'
, updateIpRestriction_awsAccountId
- Your AWS account ID.
Request Lenses
updateIpRestriction_ipRestrictionRuleMap :: Lens' UpdateIpRestriction (Maybe (HashMap Text Text)) Source #
Describes updated IP rules.
updateIpRestriction_enabled :: Lens' UpdateIpRestriction (Maybe Bool) Source #
Whether or not IP rules are enabled.
updateIpRestriction_awsAccountId :: Lens' UpdateIpRestriction Text Source #
Your AWS account ID.
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:
$sel:requestId:UpdateIpRestrictionResponse'
, updateIpRestrictionResponse_requestId
- The ID of the update request.
$sel:awsAccountId:UpdateIpRestriction'
, updateIpRestrictionResponse_awsAccountId
- Your AWS account ID.
$sel:status:UpdateIpRestrictionResponse'
, updateIpRestrictionResponse_status
- The status of the updated IP rules. A successful request returns a 200
code.
Response Lenses
updateIpRestrictionResponse_requestId :: Lens' UpdateIpRestrictionResponse (Maybe Text) Source #
The ID of the update request.
updateIpRestrictionResponse_awsAccountId :: Lens' UpdateIpRestrictionResponse (Maybe Text) Source #
Your AWS account ID.
updateIpRestrictionResponse_status :: Lens' UpdateIpRestrictionResponse Int Source #
The status of the updated IP rules. A successful request returns a 200 code.