/*
* 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
{
///
/// Provides summary information for an App Runner service.
///
///
///
/// This type contains limited information about a service. It doesn't include configuration
/// details. It's returned by the ListServices
/// action. Complete service information is returned by the CreateService,
/// DescribeService,
/// and DeleteService
/// actions using the Service
/// type.
///
///
public partial class ServiceSummary
{
private DateTime? _createdAt;
private string _serviceArn;
private string _serviceId;
private string _serviceName;
private string _serviceUrl;
private ServiceStatus _status;
private DateTime? _updatedAt;
///
/// Gets and sets the property CreatedAt.
///
/// The time when the App Runner service was created. It's in the Unix time stamp format.
///
///
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 ServiceArn.
///
/// The Amazon Resource Name (ARN) of this service.
///
///
[AWSProperty(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(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(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 Status.
///
/// The current state of the App Runner service. These particular values mean the following.
///
/// -
///
///
CREATE_FAILED
– The service failed to create. Read the failure events
/// and logs, change any parameters that need to be fixed, and retry the call to create
/// the service.
///
///
///
/// The failed service isn't usable, and still counts towards your service quota. When
/// you're done analyzing the failure, delete the service.
///
/// -
///
///
DELETE_FAILED
– The service failed to delete and can't be successfully
/// recovered. Retry the service deletion call to ensure that all related resources are
/// removed.
///
///
///
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. It's in theUnix time stamp
/// format.
///
///
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;
}
}
}