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 |
Synopsis
- data ManagedRule = ManagedRule' {
- tags :: Maybe [Tag]
- templateName :: Text
- resourceARN :: Text
- newManagedRule :: Text -> Text -> ManagedRule
- managedRule_tags :: Lens' ManagedRule (Maybe [Tag])
- managedRule_templateName :: Lens' ManagedRule Text
- managedRule_resourceARN :: Lens' ManagedRule Text
Documentation
data ManagedRule Source #
Contains the information that's required to enable a managed Contributor Insights rule for an Amazon Web Services resource.
See: newManagedRule
smart constructor.
ManagedRule' | |
|
Instances
Create a value of ManagedRule
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:tags:ManagedRule'
, managedRule_tags
- A list of key-value pairs that you can associate with a managed
Contributor Insights rule. You can associate as many as 50 tags with a
rule. Tags can help you organize and categorize your resources. You also
can use them to scope user permissions by granting a user permission to
access or change only the resources that have certain tag values. To
associate tags with a rule, you must have the cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If
you are using this operation to update an existing Contributor Insights
rule, any tags that you specify in this parameter are ignored. To change
the tags of an existing rule, use TagResource
.
$sel:templateName:ManagedRule'
, managedRule_templateName
- The template name for the managed Contributor Insights rule, as returned
by ListManagedInsightRules
.
$sel:resourceARN:ManagedRule'
, managedRule_resourceARN
- The ARN of an Amazon Web Services resource that has managed Contributor
Insights rules.
managedRule_tags :: Lens' ManagedRule (Maybe [Tag]) Source #
A list of key-value pairs that you can associate with a managed
Contributor Insights rule. You can associate as many as 50 tags with a
rule. Tags can help you organize and categorize your resources. You also
can use them to scope user permissions by granting a user permission to
access or change only the resources that have certain tag values. To
associate tags with a rule, you must have the cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If
you are using this operation to update an existing Contributor Insights
rule, any tags that you specify in this parameter are ignored. To change
the tags of an existing rule, use TagResource
.
managedRule_templateName :: Lens' ManagedRule Text Source #
The template name for the managed Contributor Insights rule, as returned
by ListManagedInsightRules
.
managedRule_resourceARN :: Lens' ManagedRule Text Source #
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.