/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the auditmanager-2017-07-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AuditManager.Model
{
///
/// Container for the parameters to the DeleteAssessmentReport operation.
/// Deletes an assessment report in Audit Manager.
///
///
///
/// When you run the DeleteAssessmentReport
operation, Audit Manager attempts
/// to delete the following data:
///
/// -
///
/// The specified assessment report that’s stored in your S3 bucket
///
///
-
///
/// The associated metadata that’s stored in Audit Manager
///
///
///
/// If Audit Manager can’t access the assessment report in your S3 bucket, the report
/// isn’t deleted. In this event, the DeleteAssessmentReport
operation doesn’t
/// fail. Instead, it proceeds to delete the associated metadata only. You must then delete
/// the assessment report from the S3 bucket yourself.
///
///
///
/// This scenario happens when Audit Manager receives a 403 (Forbidden)
or
/// 404 (Not Found)
error from Amazon S3. To avoid this, make sure that your
/// S3 bucket is available, and that you configured the correct permissions for Audit
/// Manager to delete resources in your S3 bucket. For an example permissions policy that
/// you can use, see Assessment
/// report destination permissions in the Audit Manager User Guide. For information
/// about the issues that could cause a 403 (Forbidden)
or 404 (Not
/// Found
) error from Amazon S3, see List
/// of Error Codes in the Amazon Simple Storage Service API Reference.
///
///
public partial class DeleteAssessmentReportRequest : AmazonAuditManagerRequest
{
private string _assessmentId;
private string _assessmentReportId;
///
/// Gets and sets the property AssessmentId.
///
/// The unique identifier for the assessment.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string AssessmentId
{
get { return this._assessmentId; }
set { this._assessmentId = value; }
}
// Check to see if AssessmentId property is set
internal bool IsSetAssessmentId()
{
return this._assessmentId != null;
}
///
/// Gets and sets the property AssessmentReportId.
///
/// The unique identifier for the assessment report.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string AssessmentReportId
{
get { return this._assessmentReportId; }
set { this._assessmentReportId = value; }
}
// Check to see if AssessmentReportId property is set
internal bool IsSetAssessmentReportId()
{
return this._assessmentReportId != null;
}
}
}