// *** 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.AliCloud.Ga
{
    /// <summary>
    /// Provides a Global Accelerator (GA) Additional Certificate resource.
    /// 
    /// For information about Global Accelerator (GA) Additional Certificate and how to use it, see [What is Additional Certificate](https://www.alibabacloud.com/help/en/doc-detail/302356.html).
    /// 
    /// &gt; **NOTE:** Available in v1.150.0+.
    /// 
    /// ## Import
    /// 
    /// Global Accelerator (GA) Additional Certificate can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:ga/additionalCertificate:AdditionalCertificate example &lt;accelerator_id&gt;:&lt;listener_id&gt;:&lt;domain&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:ga/additionalCertificate:AdditionalCertificate")]
    public partial class AdditionalCertificate : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The ID of the GA instance.
        /// </summary>
        [Output("acceleratorId")]
        public Output<string> AcceleratorId { get; private set; } = null!;

        /// <summary>
        /// The Certificate ID.
        /// </summary>
        [Output("certificateId")]
        public Output<string> CertificateId { get; private set; } = null!;

        /// <summary>
        /// The domain name specified by the certificate. **NOTE:** You can associate each domain name with only one additional certificate.
        /// </summary>
        [Output("domain")]
        public Output<string> Domain { get; private set; } = null!;

        /// <summary>
        /// The ID of the listener. **NOTE:** Only HTTPS listeners support this parameter.
        /// </summary>
        [Output("listenerId")]
        public Output<string> ListenerId { get; private set; } = null!;


        /// <summary>
        /// Create a AdditionalCertificate 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 AdditionalCertificate(string name, AdditionalCertificateArgs args, CustomResourceOptions? options = null)
            : base("alicloud:ga/additionalCertificate:AdditionalCertificate", name, args ?? new AdditionalCertificateArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AdditionalCertificate(string name, Input<string> id, AdditionalCertificateState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:ga/additionalCertificate:AdditionalCertificate", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/rhysmdnz/pulumi-alicloud",
            };
            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 AdditionalCertificate 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 AdditionalCertificate Get(string name, Input<string> id, AdditionalCertificateState? state = null, CustomResourceOptions? options = null)
        {
            return new AdditionalCertificate(name, id, state, options);
        }
    }

    public sealed class AdditionalCertificateArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The ID of the GA instance.
        /// </summary>
        [Input("acceleratorId", required: true)]
        public Input<string> AcceleratorId { get; set; } = null!;

        /// <summary>
        /// The Certificate ID.
        /// </summary>
        [Input("certificateId", required: true)]
        public Input<string> CertificateId { get; set; } = null!;

        /// <summary>
        /// The domain name specified by the certificate. **NOTE:** You can associate each domain name with only one additional certificate.
        /// </summary>
        [Input("domain", required: true)]
        public Input<string> Domain { get; set; } = null!;

        /// <summary>
        /// The ID of the listener. **NOTE:** Only HTTPS listeners support this parameter.
        /// </summary>
        [Input("listenerId", required: true)]
        public Input<string> ListenerId { get; set; } = null!;

        public AdditionalCertificateArgs()
        {
        }
        public static new AdditionalCertificateArgs Empty => new AdditionalCertificateArgs();
    }

    public sealed class AdditionalCertificateState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The ID of the GA instance.
        /// </summary>
        [Input("acceleratorId")]
        public Input<string>? AcceleratorId { get; set; }

        /// <summary>
        /// The Certificate ID.
        /// </summary>
        [Input("certificateId")]
        public Input<string>? CertificateId { get; set; }

        /// <summary>
        /// The domain name specified by the certificate. **NOTE:** You can associate each domain name with only one additional certificate.
        /// </summary>
        [Input("domain")]
        public Input<string>? Domain { get; set; }

        /// <summary>
        /// The ID of the listener. **NOTE:** Only HTTPS listeners support this parameter.
        /// </summary>
        [Input("listenerId")]
        public Input<string>? ListenerId { get; set; }

        public AdditionalCertificateState()
        {
        }
        public static new AdditionalCertificateState Empty => new AdditionalCertificateState();
    }
}
