libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchLogs.Types.ResourcePolicy

Description

 
Synopsis

Documentation

data ResourcePolicy Source #

A policy enabling one or more entities to put logs to a log group in this account.

See: newResourcePolicy smart constructor.

Constructors

ResourcePolicy' 

Fields

Instances

Instances details
Eq ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

Read ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

Show ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

Generic ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

Associated Types

type Rep ResourcePolicy :: Type -> Type #

NFData ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

Methods

rnf :: ResourcePolicy -> () #

Hashable ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

FromJSON ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

type Rep ResourcePolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.ResourcePolicy

type Rep ResourcePolicy = D1 ('MetaData "ResourcePolicy" "Amazonka.CloudWatchLogs.Types.ResourcePolicy" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "ResourcePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "policyDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdatedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))

newResourcePolicy :: ResourcePolicy Source #

Create a value of ResourcePolicy 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:policyName:ResourcePolicy', resourcePolicy_policyName - The name of the resource policy.

$sel:policyDocument:ResourcePolicy', resourcePolicy_policyDocument - The details of the policy.

$sel:lastUpdatedTime:ResourcePolicy', resourcePolicy_lastUpdatedTime - Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

resourcePolicy_policyName :: Lens' ResourcePolicy (Maybe Text) Source #

The name of the resource policy.

resourcePolicy_lastUpdatedTime :: Lens' ResourcePolicy (Maybe Natural) Source #

Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.