<reponame>Dwonczykj/gember_deploy<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;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Mariadb
{
    [TencentcloudResourceType("tencentcloud:Mariadb/encryptAttributes:EncryptAttributes")]
    public partial class EncryptAttributes : Pulumi.CustomResource
    {
        /// <summary>
        /// whether to enable data encryption, it is not supported to turn it off after it is turned on. The optional values:
        /// 0-disable, 1-enable.
        /// </summary>
        [Output("encryptEnabled")]
        public Output<int> EncryptEnabled { get; private set; } = null!;

        /// <summary>
        /// instance id.
        /// </summary>
        [Output("instanceId")]
        public Output<string> InstanceId { get; private set; } = null!;


        /// <summary>
        /// Create a EncryptAttributes 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 EncryptAttributes(string name, EncryptAttributesArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Mariadb/encryptAttributes:EncryptAttributes", name, args ?? new EncryptAttributesArgs(), MakeResourceOptions(options, ""))
        {
        }

        private EncryptAttributes(string name, Input<string> id, EncryptAttributesState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Mariadb/encryptAttributes:EncryptAttributes", 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/tencentcloudstack",
            };
            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 EncryptAttributes 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 EncryptAttributes Get(string name, Input<string> id, EncryptAttributesState? state = null, CustomResourceOptions? options = null)
        {
            return new EncryptAttributes(name, id, state, options);
        }
    }

    public sealed class EncryptAttributesArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// whether to enable data encryption, it is not supported to turn it off after it is turned on. The optional values:
        /// 0-disable, 1-enable.
        /// </summary>
        [Input("encryptEnabled", required: true)]
        public Input<int> EncryptEnabled { get; set; } = null!;

        /// <summary>
        /// instance id.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

        public EncryptAttributesArgs()
        {
        }
    }

    public sealed class EncryptAttributesState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// whether to enable data encryption, it is not supported to turn it off after it is turned on. The optional values:
        /// 0-disable, 1-enable.
        /// </summary>
        [Input("encryptEnabled")]
        public Input<int>? EncryptEnabled { get; set; }

        /// <summary>
        /// instance id.
        /// </summary>
        [Input("instanceId")]
        public Input<string>? InstanceId { get; set; }

        public EncryptAttributesState()
        {
        }
    }
}
