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 |
Creates a usage report subscription. Usage reports are generated daily.
Synopsis
- data CreateUsageReportSubscription = CreateUsageReportSubscription' {
- newCreateUsageReportSubscription :: CreateUsageReportSubscription
- data CreateUsageReportSubscriptionResponse = CreateUsageReportSubscriptionResponse' {}
- newCreateUsageReportSubscriptionResponse :: Int -> CreateUsageReportSubscriptionResponse
- createUsageReportSubscriptionResponse_schedule :: Lens' CreateUsageReportSubscriptionResponse (Maybe UsageReportSchedule)
- createUsageReportSubscriptionResponse_s3BucketName :: Lens' CreateUsageReportSubscriptionResponse (Maybe Text)
- createUsageReportSubscriptionResponse_httpStatus :: Lens' CreateUsageReportSubscriptionResponse Int
Creating a Request
data CreateUsageReportSubscription Source #
See: newCreateUsageReportSubscription
smart constructor.
Instances
newCreateUsageReportSubscription :: CreateUsageReportSubscription Source #
Create a value of CreateUsageReportSubscription
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data CreateUsageReportSubscriptionResponse Source #
See: newCreateUsageReportSubscriptionResponse
smart constructor.
CreateUsageReportSubscriptionResponse' | |
|
Instances
newCreateUsageReportSubscriptionResponse Source #
Create a value of CreateUsageReportSubscriptionResponse
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:schedule:CreateUsageReportSubscriptionResponse'
, createUsageReportSubscriptionResponse_schedule
- The schedule for generating usage reports.
$sel:s3BucketName:CreateUsageReportSubscriptionResponse'
, createUsageReportSubscriptionResponse_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:httpStatus:CreateUsageReportSubscriptionResponse'
, createUsageReportSubscriptionResponse_httpStatus
- The response's http status code.
Response Lenses
createUsageReportSubscriptionResponse_schedule :: Lens' CreateUsageReportSubscriptionResponse (Maybe UsageReportSchedule) Source #
The schedule for generating usage reports.
createUsageReportSubscriptionResponse_s3BucketName :: Lens' CreateUsageReportSubscriptionResponse (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.
createUsageReportSubscriptionResponse_httpStatus :: Lens' CreateUsageReportSubscriptionResponse Int Source #
The response's http status code.