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 |
Gets information about a Recycle Bin retention rule.
Synopsis
- data GetRule = GetRule' {
- identifier :: Text
- newGetRule :: Text -> GetRule
- getRule_identifier :: Lens' GetRule Text
- data GetRuleResponse = GetRuleResponse' {}
- newGetRuleResponse :: Int -> GetRuleResponse
- getRuleResponse_description :: Lens' GetRuleResponse (Maybe Text)
- getRuleResponse_identifier :: Lens' GetRuleResponse (Maybe Text)
- getRuleResponse_lockConfiguration :: Lens' GetRuleResponse (Maybe LockConfiguration)
- getRuleResponse_lockEndTime :: Lens' GetRuleResponse (Maybe UTCTime)
- getRuleResponse_lockState :: Lens' GetRuleResponse (Maybe LockState)
- getRuleResponse_resourceTags :: Lens' GetRuleResponse (Maybe [ResourceTag])
- getRuleResponse_resourceType :: Lens' GetRuleResponse (Maybe ResourceType)
- getRuleResponse_retentionPeriod :: Lens' GetRuleResponse (Maybe RetentionPeriod)
- getRuleResponse_status :: Lens' GetRuleResponse (Maybe RuleStatus)
- getRuleResponse_httpStatus :: Lens' GetRuleResponse Int
Creating a Request
See: newGetRule
smart constructor.
GetRule' | |
|
Instances
ToHeaders GetRule Source # | |
Defined in Amazonka.RBin.GetRule | |
ToPath GetRule Source # | |
Defined in Amazonka.RBin.GetRule toPath :: GetRule -> ByteString # | |
ToQuery GetRule Source # | |
Defined in Amazonka.RBin.GetRule toQuery :: GetRule -> QueryString # | |
AWSRequest GetRule Source # | |
Defined in Amazonka.RBin.GetRule type AWSResponse GetRule # request :: (Service -> Service) -> GetRule -> Request GetRule # response :: MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy GetRule -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetRule))) # | |
Generic GetRule Source # | |
Read GetRule Source # | |
Show GetRule Source # | |
NFData GetRule Source # | |
Defined in Amazonka.RBin.GetRule | |
Eq GetRule Source # | |
Hashable GetRule Source # | |
Defined in Amazonka.RBin.GetRule | |
type AWSResponse GetRule Source # | |
Defined in Amazonka.RBin.GetRule | |
type Rep GetRule Source # | |
Defined in Amazonka.RBin.GetRule |
Create a value of GetRule
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:
GetRule
, getRule_identifier
- The unique ID of the retention rule.
Request Lenses
Destructuring the Response
data GetRuleResponse Source #
See: newGetRuleResponse
smart constructor.
GetRuleResponse' | |
|
Instances
Create a value of GetRuleResponse
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:
GetRuleResponse
, getRuleResponse_description
- The retention rule description.
GetRule
, getRuleResponse_identifier
- The unique ID of the retention rule.
$sel:lockConfiguration:GetRuleResponse'
, getRuleResponse_lockConfiguration
- Information about the retention rule lock configuration.
$sel:lockEndTime:GetRuleResponse'
, getRuleResponse_lockEndTime
- The date and time at which the unlock delay is set to expire. Only
returned for retention rules that have been unlocked and that are still
within the unlock delay period.
GetRuleResponse
, getRuleResponse_lockState
- The lock state for the retention rule.
locked
- The retention rule is locked and can't be modified or deleted.pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
$sel:resourceTags:GetRuleResponse'
, getRuleResponse_resourceTags
- Information about the resource tags used to identify resources that are
retained by the retention rule.
$sel:resourceType:GetRuleResponse'
, getRuleResponse_resourceType
- The resource type retained by the retention rule.
GetRuleResponse
, getRuleResponse_retentionPeriod
- Information about the retention period for which the retention rule is
to retain resources.
$sel:status:GetRuleResponse'
, getRuleResponse_status
- The state of the retention rule. Only retention rules that are in the
available
state retain resources.
$sel:httpStatus:GetRuleResponse'
, getRuleResponse_httpStatus
- The response's http status code.
Response Lenses
getRuleResponse_description :: Lens' GetRuleResponse (Maybe Text) Source #
The retention rule description.
getRuleResponse_identifier :: Lens' GetRuleResponse (Maybe Text) Source #
The unique ID of the retention rule.
getRuleResponse_lockConfiguration :: Lens' GetRuleResponse (Maybe LockConfiguration) Source #
Information about the retention rule lock configuration.
getRuleResponse_lockEndTime :: Lens' GetRuleResponse (Maybe UTCTime) Source #
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
getRuleResponse_lockState :: Lens' GetRuleResponse (Maybe LockState) Source #
The lock state for the retention rule.
locked
- The retention rule is locked and can't be modified or deleted.pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
getRuleResponse_resourceTags :: Lens' GetRuleResponse (Maybe [ResourceTag]) Source #
Information about the resource tags used to identify resources that are retained by the retention rule.
getRuleResponse_resourceType :: Lens' GetRuleResponse (Maybe ResourceType) Source #
The resource type retained by the retention rule.
getRuleResponse_retentionPeriod :: Lens' GetRuleResponse (Maybe RetentionPeriod) Source #
Information about the retention period for which the retention rule is to retain resources.
getRuleResponse_status :: Lens' GetRuleResponse (Maybe RuleStatus) Source #
The state of the retention rule. Only retention rules that are in the
available
state retain resources.
getRuleResponse_httpStatus :: Lens' GetRuleResponse Int Source #
The response's http status code.