amazonka-appstream-2.0: Amazon AppStream 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.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.

  • 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.

  • schedule :: Maybe UsageReportSchedule

    The schedule for generating usage reports.

  • subscriptionErrors :: Maybe [LastReportGenerationExecutionError]

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

Instances

Instances details
FromJSON 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 #

Read UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Show UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

NFData UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Methods

rnf :: UsageReportSubscription -> () #

Eq UsageReportSubscription Source # 
Instance details

Defined in Amazonka.AppStream.Types.UsageReportSubscription

Hashable 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" "amazonka-appstream-2.0-2EgS7yjN1zMCngYkSFPgOd" 'False) (C1 ('MetaCons "UsageReportSubscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lastGeneratedReportDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "s3BucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "schedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageReportSchedule)) :*: S1 ('MetaSel ('Just "subscriptionErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LastReportGenerationExecutionError])))))

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: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.

$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.

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.

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

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