/* * 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 { /// /// Describes an App Runner service. It can describe a service in any state, including /// deleted services. /// /// /// /// This type contains the full information about a service, including configuration details. /// It's returned by the CreateService, /// DescribeService, /// and DeleteService /// actions. A subset of this information is returned by the ListServices /// action using the ServiceSummary /// type. /// /// public partial class Service { private AutoScalingConfigurationSummary _autoScalingConfigurationSummary; private DateTime? _createdAt; private DateTime? _deletedAt; private EncryptionConfiguration _encryptionConfiguration; private HealthCheckConfiguration _healthCheckConfiguration; private InstanceConfiguration _instanceConfiguration; private NetworkConfiguration _networkConfiguration; private ServiceObservabilityConfiguration _observabilityConfiguration; private string _serviceArn; private string _serviceId; private string _serviceName; private string _serviceUrl; private SourceConfiguration _sourceConfiguration; private ServiceStatus _status; private DateTime? _updatedAt; /// /// Gets and sets the property AutoScalingConfigurationSummary. /// /// Summary information for the App Runner automatic scaling configuration resource that's /// associated with this service. /// /// [AWSProperty(Required=true)] public AutoScalingConfigurationSummary AutoScalingConfigurationSummary { get { return this._autoScalingConfigurationSummary; } set { this._autoScalingConfigurationSummary = value; } } // Check to see if AutoScalingConfigurationSummary property is set internal bool IsSetAutoScalingConfigurationSummary() { return this._autoScalingConfigurationSummary != null; } /// /// Gets and sets the property CreatedAt. /// /// The time when the App Runner service was created. It's in the Unix time stamp format. /// /// [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property DeletedAt. /// /// The time when the App Runner service was deleted. It's in the Unix time stamp format. /// /// public DateTime DeletedAt { get { return this._deletedAt.GetValueOrDefault(); } set { this._deletedAt = value; } } // Check to see if DeletedAt property is set internal bool IsSetDeletedAt() { return this._deletedAt.HasValue; } /// /// Gets and sets the property EncryptionConfiguration. /// /// The encryption key that App Runner uses to encrypt the service logs and the copy of /// the source repository that App Runner maintains for the service. It can be either /// a customer-provided encryption key or an Amazon Web Services managed key. /// /// public EncryptionConfiguration EncryptionConfiguration { get { return this._encryptionConfiguration; } set { this._encryptionConfiguration = value; } } // Check to see if EncryptionConfiguration property is set internal bool IsSetEncryptionConfiguration() { return this._encryptionConfiguration != null; } /// /// Gets and sets the property HealthCheckConfiguration. /// /// The settings for the health check that App Runner performs to monitor the health of /// this service. /// /// public HealthCheckConfiguration HealthCheckConfiguration { get { return this._healthCheckConfiguration; } set { this._healthCheckConfiguration = value; } } // Check to see if HealthCheckConfiguration property is set internal bool IsSetHealthCheckConfiguration() { return this._healthCheckConfiguration != null; } /// /// Gets and sets the property InstanceConfiguration. /// /// The runtime configuration of instances (scaling units) of this service. /// /// [AWSProperty(Required=true)] public InstanceConfiguration InstanceConfiguration { get { return this._instanceConfiguration; } set { this._instanceConfiguration = value; } } // Check to see if InstanceConfiguration property is set internal bool IsSetInstanceConfiguration() { return this._instanceConfiguration != null; } /// /// Gets and sets the property NetworkConfiguration. /// /// Configuration settings related to network traffic of the web application that this /// service runs. /// /// [AWSProperty(Required=true)] public NetworkConfiguration NetworkConfiguration { get { return this._networkConfiguration; } set { this._networkConfiguration = value; } } // Check to see if NetworkConfiguration property is set internal bool IsSetNetworkConfiguration() { return this._networkConfiguration != null; } /// /// Gets and sets the property ObservabilityConfiguration. /// /// The observability configuration of this service. /// /// public ServiceObservabilityConfiguration ObservabilityConfiguration { get { return this._observabilityConfiguration; } set { this._observabilityConfiguration = value; } } // Check to see if ObservabilityConfiguration property is set internal bool IsSetObservabilityConfiguration() { return this._observabilityConfiguration != null; } /// /// Gets and sets the property ServiceArn. /// /// The Amazon Resource Name (ARN) of this service. /// /// [AWSProperty(Required=true, Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } /// /// Gets and sets the property ServiceId. /// /// An ID that App Runner generated for this service. It's unique within the Amazon Web /// Services Region. /// /// [AWSProperty(Required=true, Min=32, Max=32)] public string ServiceId { get { return this._serviceId; } set { this._serviceId = value; } } // Check to see if ServiceId property is set internal bool IsSetServiceId() { return this._serviceId != null; } /// /// Gets and sets the property ServiceName. /// /// The customer-provided service name. /// /// [AWSProperty(Required=true, Min=4, Max=40)] public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } /// /// Gets and sets the property ServiceUrl. /// /// A subdomain URL that App Runner generated for this service. You can use this URL to /// access your service web application. /// /// [AWSProperty(Min=0, Max=51200)] public string ServiceUrl { get { return this._serviceUrl; } set { this._serviceUrl = value; } } // Check to see if ServiceUrl property is set internal bool IsSetServiceUrl() { return this._serviceUrl != null; } /// /// Gets and sets the property SourceConfiguration. /// /// The source deployed to the App Runner service. It can be a code or an image repository. /// /// [AWSProperty(Required=true)] public SourceConfiguration SourceConfiguration { get { return this._sourceConfiguration; } set { this._sourceConfiguration = value; } } // Check to see if SourceConfiguration property is set internal bool IsSetSourceConfiguration() { return this._sourceConfiguration != null; } /// /// Gets and sets the property Status. /// /// The current state of the App Runner service. These particular values mean the following. /// /// /// [AWSProperty(Required=true)] public ServiceStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property UpdatedAt. /// /// The time when the App Runner service was last updated at. It's in the Unix time stamp /// format. /// /// [AWSProperty(Required=true)] public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }