<reponame>Kagashino/pulumi-tctest<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.Ccn
{
    [TctestResourceType("tctest:Ccn/ccnBandwidthLimit:CcnBandwidthLimit")]
    public partial class CcnBandwidthLimit : Pulumi.CustomResource
    {
        /// <summary>
        /// Limitation of bandwidth.
        /// </summary>
        [Output("bandwidthLimit")]
        public Output<int> BandwidthLimit { get; private set; } = null!;

        /// <summary>
        /// ID of the CCN.
        /// </summary>
        [Output("ccnId")]
        public Output<string> CcnId { get; private set; } = null!;

        /// <summary>
        /// Destination area restriction. If the `CCN` rate limit type is `OUTER_REGION_LIMIT`, this value does not need to be set.
        /// </summary>
        [Output("dstRegion")]
        public Output<string?> DstRegion { get; private set; } = null!;

        /// <summary>
        /// Limitation of region.
        /// </summary>
        [Output("region")]
        public Output<string> Region { get; private set; } = null!;


        /// <summary>
        /// Create a CcnBandwidthLimit 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 CcnBandwidthLimit(string name, CcnBandwidthLimitArgs args, CustomResourceOptions? options = null)
            : base("tctest:Ccn/ccnBandwidthLimit:CcnBandwidthLimit", name, args ?? new CcnBandwidthLimitArgs(), MakeResourceOptions(options, ""))
        {
        }

        private CcnBandwidthLimit(string name, Input<string> id, CcnBandwidthLimitState? state = null, CustomResourceOptions? options = null)
            : base("tctest:Ccn/ccnBandwidthLimit:CcnBandwidthLimit", 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 CcnBandwidthLimit 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 CcnBandwidthLimit Get(string name, Input<string> id, CcnBandwidthLimitState? state = null, CustomResourceOptions? options = null)
        {
            return new CcnBandwidthLimit(name, id, state, options);
        }
    }

    public sealed class CcnBandwidthLimitArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Limitation of bandwidth.
        /// </summary>
        [Input("bandwidthLimit")]
        public Input<int>? BandwidthLimit { get; set; }

        /// <summary>
        /// ID of the CCN.
        /// </summary>
        [Input("ccnId", required: true)]
        public Input<string> CcnId { get; set; } = null!;

        /// <summary>
        /// Destination area restriction. If the `CCN` rate limit type is `OUTER_REGION_LIMIT`, this value does not need to be set.
        /// </summary>
        [Input("dstRegion")]
        public Input<string>? DstRegion { get; set; }

        /// <summary>
        /// Limitation of region.
        /// </summary>
        [Input("region", required: true)]
        public Input<string> Region { get; set; } = null!;

        public CcnBandwidthLimitArgs()
        {
        }
    }

    public sealed class CcnBandwidthLimitState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Limitation of bandwidth.
        /// </summary>
        [Input("bandwidthLimit")]
        public Input<int>? BandwidthLimit { get; set; }

        /// <summary>
        /// ID of the CCN.
        /// </summary>
        [Input("ccnId")]
        public Input<string>? CcnId { get; set; }

        /// <summary>
        /// Destination area restriction. If the `CCN` rate limit type is `OUTER_REGION_LIMIT`, this value does not need to be set.
        /// </summary>
        [Input("dstRegion")]
        public Input<string>? DstRegion { get; set; }

        /// <summary>
        /// Limitation of region.
        /// </summary>
        [Input("region")]
        public Input<string>? Region { get; set; }

        public CcnBandwidthLimitState()
        {
        }
    }
}
