<gh_stars>0// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Tctest.APIGateway
{
    [TctestResourceType("tctest:APIGateway/serviceRelease:ServiceRelease")]
    public partial class ServiceRelease : Pulumi.CustomResource
    {
        /// <summary>
        /// API gateway service environment name to be released. Valid values: `test`, `prepub`, `release`.
        /// </summary>
        [Output("environmentName")]
        public Output<string> EnvironmentName { get; private set; } = null!;

        /// <summary>
        /// This release description of the API gateway service.
        /// </summary>
        [Output("releaseDesc")]
        public Output<string> ReleaseDesc { get; private set; } = null!;

        /// <summary>
        /// The release version.
        /// </summary>
        [Output("releaseVersion")]
        public Output<string> ReleaseVersion { get; private set; } = null!;

        /// <summary>
        /// ID of API gateway service.
        /// </summary>
        [Output("serviceId")]
        public Output<string> ServiceId { get; private set; } = null!;


        /// <summary>
        /// Create a ServiceRelease resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public ServiceRelease(string name, ServiceReleaseArgs args, CustomResourceOptions? options = null)
            : base("tctest:APIGateway/serviceRelease:ServiceRelease", name, args ?? new ServiceReleaseArgs(), MakeResourceOptions(options, ""))
        {
        }

        private ServiceRelease(string name, Input<string> id, ServiceReleaseState? state = null, CustomResourceOptions? options = null)
            : base("tctest:APIGateway/serviceRelease:ServiceRelease", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing ServiceRelease resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static ServiceRelease Get(string name, Input<string> id, ServiceReleaseState? state = null, CustomResourceOptions? options = null)
        {
            return new ServiceRelease(name, id, state, options);
        }
    }

    public sealed class ServiceReleaseArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// API gateway service environment name to be released. Valid values: `test`, `prepub`, `release`.
        /// </summary>
        [Input("environmentName", required: true)]
        public Input<string> EnvironmentName { get; set; } = null!;

        /// <summary>
        /// This release description of the API gateway service.
        /// </summary>
        [Input("releaseDesc", required: true)]
        public Input<string> ReleaseDesc { get; set; } = null!;

        /// <summary>
        /// The release version.
        /// </summary>
        [Input("releaseVersion")]
        public Input<string>? ReleaseVersion { get; set; }

        /// <summary>
        /// ID of API gateway service.
        /// </summary>
        [Input("serviceId", required: true)]
        public Input<string> ServiceId { get; set; } = null!;

        public ServiceReleaseArgs()
        {
        }
    }

    public sealed class ServiceReleaseState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// API gateway service environment name to be released. Valid values: `test`, `prepub`, `release`.
        /// </summary>
        [Input("environmentName")]
        public Input<string>? EnvironmentName { get; set; }

        /// <summary>
        /// This release description of the API gateway service.
        /// </summary>
        [Input("releaseDesc")]
        public Input<string>? ReleaseDesc { get; set; }

        /// <summary>
        /// The release version.
        /// </summary>
        [Input("releaseVersion")]
        public Input<string>? ReleaseVersion { get; set; }

        /// <summary>
        /// ID of API gateway service.
        /// </summary>
        [Input("serviceId")]
        public Input<string>? ServiceId { get; set; }

        public ServiceReleaseState()
        {
        }
    }
}
