libZSservicesZSamazonka-appstreamZSamazonka-appstream
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.AppStream.Types.UsageReportSubscription

Description

 
Synopsis

Documentation

data UsageReportSubscription Source #

Describes information about the usage report subscription.

See: newUsageReportSubscription smart constructor.

Constructors

UsageReportSubscription' 

Fields

  • lastGeneratedReportDate :: Maybe POSIX

    The time when the last usage report was generated.

  • schedule :: Maybe UsageReportSchedule

    The schedule for generating usage reports.

  • subscriptionErrors :: Maybe [LastReportGenerationExecutionError]

    The errors that were returned if usage reports couldn't be generated.

  • s3BucketName :: Maybe Text

    The Amazon S3 bucket where generated reports are stored.

    If you enabled on-instance session scripts and Amazon S3 logging for your session script configuration, AppStream 2.0 created an S3 bucket to store the script output. The bucket is unique to your account and Region. When you enable usage reporting in this case, AppStream 2.0 uses the same bucket to store your usage reports. If you haven't already enabled on-instance session scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket.

Instances

Instances details
Eq UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Read UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Show UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Generic UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Associated Types

type Rep UsageReportSubscription :: Type -> Type #

NFData UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Methods

rnf :: UsageReportSubscription -> () #

Hashable UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

FromJSON UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

type Rep UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

type Rep UsageReportSubscription = D1 ('MetaData "UsageReportSubscription" "Amazonka.AppStream.Types.UsageReportSubscription" "libZSservicesZSamazonka-appstreamZSamazonka-appstream" 'False) (C1 ('MetaCons "UsageReportSubscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lastGeneratedReportDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "schedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageReportSchedule))) :*: (S1 ('MetaSel ('Just "subscriptionErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LastReportGenerationExecutionError])) :*: S1 ('MetaSel ('Just "s3BucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newUsageReportSubscription :: UsageReportSubscription Source #

Create a value of UsageReportSubscription 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:lastGeneratedReportDate:UsageReportSubscription', usageReportSubscription_lastGeneratedReportDate - The time when the last usage report was generated.

$sel:schedule:UsageReportSubscription', usageReportSubscription_schedule - The schedule for generating usage reports.

$sel:subscriptionErrors:UsageReportSubscription', usageReportSubscription_subscriptionErrors - The errors that were returned if usage reports couldn't be generated.

$sel:s3BucketName:UsageReportSubscription', usageReportSubscription_s3BucketName - The Amazon S3 bucket where generated reports are stored.

If you enabled on-instance session scripts and Amazon S3 logging for your session script configuration, AppStream 2.0 created an S3 bucket to store the script output. The bucket is unique to your account and Region. When you enable usage reporting in this case, AppStream 2.0 uses the same bucket to store your usage reports. If you haven't already enabled on-instance session scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket.

usageReportSubscription_subscriptionErrors :: Lens' UsageReportSubscription (Maybe [LastReportGenerationExecutionError]) Source #

The errors that were returned if usage reports couldn't be generated.

usageReportSubscription_s3BucketName :: Lens' UsageReportSubscription (Maybe Text) Source #

The Amazon S3 bucket where generated reports are stored.

If you enabled on-instance session scripts and Amazon S3 logging for your session script configuration, AppStream 2.0 created an S3 bucket to store the script output. The bucket is unique to your account and Region. When you enable usage reporting in this case, AppStream 2.0 uses the same bucket to store your usage reports. If you haven't already enabled on-instance session scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket.