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 |
Updates an existing report plan identified by its ReportPlanName
with
the input document in JSON format.
Synopsis
- data UpdateReportPlan = UpdateReportPlan' {}
- newUpdateReportPlan :: Text -> UpdateReportPlan
- updateReportPlan_idempotencyToken :: Lens' UpdateReportPlan (Maybe Text)
- updateReportPlan_reportSetting :: Lens' UpdateReportPlan (Maybe ReportSetting)
- updateReportPlan_reportPlanDescription :: Lens' UpdateReportPlan (Maybe Text)
- updateReportPlan_reportDeliveryChannel :: Lens' UpdateReportPlan (Maybe ReportDeliveryChannel)
- updateReportPlan_reportPlanName :: Lens' UpdateReportPlan Text
- data UpdateReportPlanResponse = UpdateReportPlanResponse' {}
- newUpdateReportPlanResponse :: Int -> UpdateReportPlanResponse
- updateReportPlanResponse_creationTime :: Lens' UpdateReportPlanResponse (Maybe UTCTime)
- updateReportPlanResponse_reportPlanName :: Lens' UpdateReportPlanResponse (Maybe Text)
- updateReportPlanResponse_reportPlanArn :: Lens' UpdateReportPlanResponse (Maybe Text)
- updateReportPlanResponse_httpStatus :: Lens' UpdateReportPlanResponse Int
Creating a Request
data UpdateReportPlan Source #
See: newUpdateReportPlan
smart constructor.
UpdateReportPlan' | |
|
Instances
Create a value of UpdateReportPlan
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:idempotencyToken:UpdateReportPlan'
, updateReportPlan_idempotencyToken
- A customer-chosen string that you can use to distinguish between
otherwise identical calls to UpdateReportPlanInput
. Retrying a
successful request with the same idempotency token results in a success
message with no action taken.
$sel:reportSetting:UpdateReportPlan'
, updateReportPlan_reportSetting
- Identifies the report template for the report. Reports are built using a
report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is RESOURCE_COMPLIANCE_REPORT
or
CONTROL_COMPLIANCE_REPORT
, this API resource also describes the report
coverage by Amazon Web Services Regions and frameworks.
$sel:reportPlanDescription:UpdateReportPlan'
, updateReportPlan_reportPlanDescription
- An optional description of the report plan with a maximum 1,024
characters.
$sel:reportDeliveryChannel:UpdateReportPlan'
, updateReportPlan_reportDeliveryChannel
- A structure that contains information about where to deliver your
reports, specifically your Amazon S3 bucket name, S3 key prefix, and the
formats of your reports.
$sel:reportPlanName:UpdateReportPlan'
, updateReportPlan_reportPlanName
- The unique name of the report plan. This name is between 1 and 256
characters, starting with a letter, and consisting of letters (a-z,
A-Z), numbers (0-9), and underscores (_).
Request Lenses
updateReportPlan_idempotencyToken :: Lens' UpdateReportPlan (Maybe Text) Source #
A customer-chosen string that you can use to distinguish between
otherwise identical calls to UpdateReportPlanInput
. Retrying a
successful request with the same idempotency token results in a success
message with no action taken.
updateReportPlan_reportSetting :: Lens' UpdateReportPlan (Maybe ReportSetting) Source #
Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is RESOURCE_COMPLIANCE_REPORT
or
CONTROL_COMPLIANCE_REPORT
, this API resource also describes the report
coverage by Amazon Web Services Regions and frameworks.
updateReportPlan_reportPlanDescription :: Lens' UpdateReportPlan (Maybe Text) Source #
An optional description of the report plan with a maximum 1,024 characters.
updateReportPlan_reportDeliveryChannel :: Lens' UpdateReportPlan (Maybe ReportDeliveryChannel) Source #
A structure that contains information about where to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
updateReportPlan_reportPlanName :: Lens' UpdateReportPlan Text Source #
The unique name of the report plan. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
Destructuring the Response
data UpdateReportPlanResponse Source #
See: newUpdateReportPlanResponse
smart constructor.
UpdateReportPlanResponse' | |
|
Instances
newUpdateReportPlanResponse Source #
Create a value of UpdateReportPlanResponse
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:creationTime:UpdateReportPlanResponse'
, updateReportPlanResponse_creationTime
- The date and time that a report plan is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationTime
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
$sel:reportPlanName:UpdateReportPlan'
, updateReportPlanResponse_reportPlanName
- The unique name of the report plan.
$sel:reportPlanArn:UpdateReportPlanResponse'
, updateReportPlanResponse_reportPlanArn
- An Amazon Resource Name (ARN) that uniquely identifies a resource. The
format of the ARN depends on the resource type.
$sel:httpStatus:UpdateReportPlanResponse'
, updateReportPlanResponse_httpStatus
- The response's http status code.
Response Lenses
updateReportPlanResponse_creationTime :: Lens' UpdateReportPlanResponse (Maybe UTCTime) Source #
The date and time that a report plan is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationTime
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
updateReportPlanResponse_reportPlanName :: Lens' UpdateReportPlanResponse (Maybe Text) Source #
The unique name of the report plan.
updateReportPlanResponse_reportPlanArn :: Lens' UpdateReportPlanResponse (Maybe Text) Source #
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
updateReportPlanResponse_httpStatus :: Lens' UpdateReportPlanResponse Int Source #
The response's http status code.