amazonka-cloudwatch-2.0: Amazon CloudWatch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatch.Types.ManagedRule

Description

 
Synopsis

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.

Constructors

ManagedRule' 

Fields

  • tags :: Maybe [Tag]

    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.

  • templateName :: Text

    The template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

  • resourceARN :: Text

    The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.

Instances

Instances details
ToQuery ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

Generic ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

Associated Types

type Rep ManagedRule :: Type -> Type #

Read ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

Show ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

NFData ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

Methods

rnf :: ManagedRule -> () #

Eq ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

Hashable ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

type Rep ManagedRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.ManagedRule

type Rep ManagedRule = D1 ('MetaData "ManagedRule" "Amazonka.CloudWatch.Types.ManagedRule" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "ManagedRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "templateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newManagedRule Source #

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.