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 |
Synopsis
- data Source = Source' {
- sourceDetails :: Maybe [SourceDetail]
- owner :: Owner
- sourceIdentifier :: Text
- newSource :: Owner -> Text -> Source
- source_sourceDetails :: Lens' Source (Maybe [SourceDetail])
- source_owner :: Lens' Source Owner
- source_sourceIdentifier :: Lens' Source Text
Documentation
Provides the Config rule owner (Amazon Web Services or customer), the rule identifier, and the events that trigger the evaluation of your Amazon Web Services resources.
See: newSource
smart constructor.
Source' | |
|
Instances
Eq Source Source # | |
Read Source Source # | |
Show Source Source # | |
Generic Source Source # | |
NFData Source Source # | |
Defined in Amazonka.Config.Types.Source | |
Hashable Source Source # | |
Defined in Amazonka.Config.Types.Source | |
ToJSON Source Source # | |
Defined in Amazonka.Config.Types.Source | |
FromJSON Source Source # | |
type Rep Source Source # | |
Defined in Amazonka.Config.Types.Source type Rep Source = D1 ('MetaData "Source" "Amazonka.Config.Types.Source" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "Source'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SourceDetail])) :*: (S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Owner) :*: S1 ('MetaSel ('Just "sourceIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
Create a value of Source
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:sourceDetails:Source'
, source_sourceDetails
- Provides the source and type of the event that causes Config to evaluate
your Amazon Web Services resources.
$sel:owner:Source'
, source_owner
- Indicates whether Amazon Web Services or the customer owns and manages
the Config rule.
$sel:sourceIdentifier:Source'
, source_sourceIdentifier
- For Config managed rules, a predefined identifier from a list. For
example, IAM_PASSWORD_POLICY
is a managed rule. To reference a managed
rule, see
Using Config managed rules.
For custom rules, the identifier is the Amazon Resource Name (ARN) of
the rule's Lambda function, such as
arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name
.
source_sourceDetails :: Lens' Source (Maybe [SourceDetail]) Source #
Provides the source and type of the event that causes Config to evaluate your Amazon Web Services resources.
source_owner :: Lens' Source Owner Source #
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
source_sourceIdentifier :: Lens' Source Text Source #
For Config managed rules, a predefined identifier from a list. For
example, IAM_PASSWORD_POLICY
is a managed rule. To reference a managed
rule, see
Using Config managed rules.
For custom rules, the identifier is the Amazon Resource Name (ARN) of
the rule's Lambda function, such as
arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name
.