/*
* 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 cloudfront-2020-05-31.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.CloudFront.Model
{
///
/// Container for the parameters to the DeleteStreamingDistribution operation.
/// Delete a streaming distribution. To delete an RTMP distribution using the CloudFront
/// API, perform the following steps.
///
///
///
/// To delete an RTMP distribution using the CloudFront API:
///
/// -
///
/// Disable the RTMP distribution.
///
///
-
///
/// Submit a
GET Streaming Distribution Config
request to get the current
/// configuration and the Etag
header for the distribution.
///
/// -
///
/// Update the XML document that was returned in the response to your
GET Streaming
/// Distribution Config
request to change the value of Enabled
to
/// false
.
///
/// -
///
/// Submit a
PUT Streaming Distribution Config
request to update the configuration
/// for your distribution. In the request body, include the XML document that you updated
/// in Step 3. Then set the value of the HTTP If-Match
header to the value
/// of the ETag
header that CloudFront returned when you submitted the GET
/// Streaming Distribution Config
request in Step 2.
///
/// -
///
/// Review the response to the
PUT Streaming Distribution Config
request
/// to confirm that the distribution was successfully disabled.
///
/// -
///
/// Submit a
GET Streaming Distribution Config
request to confirm that your
/// changes have propagated. When propagation is complete, the value of Status
/// is Deployed
.
///
/// -
///
/// Submit a
DELETE Streaming Distribution
request. Set the value of the
/// HTTP If-Match
header to the value of the ETag
header that
/// CloudFront returned when you submitted the GET Streaming Distribution Config
/// request in Step 2.
///
/// -
///
/// Review the response to your
DELETE Streaming Distribution
request to
/// confirm that the distribution was successfully deleted.
///
///
///
/// For information about deleting a distribution using the CloudFront console, see Deleting
/// a Distribution in the Amazon CloudFront Developer Guide.
///
///
public partial class DeleteStreamingDistributionRequest : AmazonCloudFrontRequest
{
private string _id;
private string _ifMatch;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public DeleteStreamingDistributionRequest() { }
///
/// Instantiates DeleteStreamingDistributionRequest with the parameterized properties
///
/// The distribution ID.
/// The value of the ETag
header that you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL
.
public DeleteStreamingDistributionRequest(string id, string ifMatch)
{
_id = id;
_ifMatch = ifMatch;
}
///
/// Gets and sets the property Id.
///
/// The distribution ID.
///
///
[AWSProperty(Required=true)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property IfMatch.
///
/// The value of the ETag
header that you received when you disabled the
/// streaming distribution. For example: E2QWRUHAPOMQZL
.
///
///
public string IfMatch
{
get { return this._ifMatch; }
set { this._ifMatch = value; }
}
// Check to see if IfMatch property is set
internal bool IsSetIfMatch()
{
return this._ifMatch != null;
}
}
}