/*
* 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 apprunner-2020-05-15.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.AppRunner.Model
{
///
/// Container for the parameters to the CreateObservabilityConfiguration operation.
/// Create an App Runner observability configuration resource. App Runner requires this
/// resource when you create or update App Runner services and you want to enable non-default
/// observability features. You can share an observability configuration across multiple
/// services.
///
///
///
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same ObservabilityConfigurationName
. The call returns incremental
/// ObservabilityConfigurationRevision
values. When you create a service
/// and configure an observability configuration resource, the service uses the latest
/// active revision of the observability configuration by default. You can optionally
/// configure the service to use a specific revision.
///
///
///
/// The observability configuration resource is designed to configure multiple features
/// (currently one feature, tracing). This action takes optional parameters that describe
/// the configuration of these features (currently one parameter, TraceConfiguration
).
/// If you don't specify a feature parameter, App Runner doesn't enable the feature.
///
///
public partial class CreateObservabilityConfigurationRequest : AmazonAppRunnerRequest
{
private string _observabilityConfigurationName;
private List _tags = new List();
private TraceConfiguration _traceConfiguration;
///
/// Gets and sets the property ObservabilityConfigurationName.
///
/// A name for the observability configuration. When you use it for the first time in
/// an Amazon Web Services Region, App Runner creates revision number 1
of
/// this name. When you use the same name in subsequent calls, App Runner creates incremental
/// revisions of the configuration.
///
///
///
/// The name DefaultConfiguration
is reserved. You can't use it to create
/// a new observability configuration, and you can't create a revision of it.
///
///
///
/// When you want to use your own observability configuration for your App Runner service,
/// create a configuration with a different name, and then provide it when you
/// create or update your service.
///
///
///
[AWSProperty(Required=true, Min=4, Max=32)]
public string ObservabilityConfigurationName
{
get { return this._observabilityConfigurationName; }
set { this._observabilityConfigurationName = value; }
}
// Check to see if ObservabilityConfigurationName property is set
internal bool IsSetObservabilityConfigurationName()
{
return this._observabilityConfigurationName != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of metadata items that you can associate with your observability configuration
/// resource. A tag is a key-value pair.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property TraceConfiguration.
///
/// The configuration of the tracing feature within this observability configuration.
/// If you don't specify it, App Runner doesn't enable tracing.
///
///
public TraceConfiguration TraceConfiguration
{
get { return this._traceConfiguration; }
set { this._traceConfiguration = value; }
}
// Check to see if TraceConfiguration property is set
internal bool IsSetTraceConfiguration()
{
return this._traceConfiguration != null;
}
}
}