// *** 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.Ecs
{
    [AliCloudResourceType("alicloud:ecs/copyImage:CopyImage")]
    public partial class CopyImage : global::Pulumi.CustomResource
    {
        [Output("deleteAutoSnapshot")]
        public Output<bool?> DeleteAutoSnapshot { get; private set; } = null!;

        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        [Output("encrypted")]
        public Output<bool?> Encrypted { get; private set; } = null!;

        [Output("force")]
        public Output<bool?> Force { get; private set; } = null!;

        [Output("imageName")]
        public Output<string> ImageName { get; private set; } = null!;

        [Output("kmsKeyId")]
        public Output<string?> KmsKeyId { get; private set; } = null!;

        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        [Output("sourceImageId")]
        public Output<string> SourceImageId { get; private set; } = null!;

        [Output("sourceRegionId")]
        public Output<string> SourceRegionId { get; private set; } = null!;

        [Output("tags")]
        public Output<ImmutableDictionary<string, object>?> Tags { get; private set; } = null!;


        /// <summary>
        /// Create a CopyImage 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 CopyImage(string name, CopyImageArgs args, CustomResourceOptions? options = null)
            : base("alicloud:ecs/copyImage:CopyImage", name, args ?? new CopyImageArgs(), MakeResourceOptions(options, ""))
        {
        }

        private CopyImage(string name, Input<string> id, CopyImageState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:ecs/copyImage:CopyImage", 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 CopyImage 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 CopyImage Get(string name, Input<string> id, CopyImageState? state = null, CustomResourceOptions? options = null)
        {
            return new CopyImage(name, id, state, options);
        }
    }

    public sealed class CopyImageArgs : global::Pulumi.ResourceArgs
    {
        [Input("deleteAutoSnapshot")]
        public Input<bool>? DeleteAutoSnapshot { get; set; }

        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("encrypted")]
        public Input<bool>? Encrypted { get; set; }

        [Input("force")]
        public Input<bool>? Force { get; set; }

        [Input("imageName")]
        public Input<string>? ImageName { get; set; }

        [Input("kmsKeyId")]
        public Input<string>? KmsKeyId { get; set; }

        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("sourceImageId", required: true)]
        public Input<string> SourceImageId { get; set; } = null!;

        [Input("sourceRegionId", required: true)]
        public Input<string> SourceRegionId { get; set; } = null!;

        [Input("tags")]
        private InputMap<object>? _tags;
        public InputMap<object> Tags
        {
            get => _tags ?? (_tags = new InputMap<object>());
            set => _tags = value;
        }

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

    public sealed class CopyImageState : global::Pulumi.ResourceArgs
    {
        [Input("deleteAutoSnapshot")]
        public Input<bool>? DeleteAutoSnapshot { get; set; }

        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("encrypted")]
        public Input<bool>? Encrypted { get; set; }

        [Input("force")]
        public Input<bool>? Force { get; set; }

        [Input("imageName")]
        public Input<string>? ImageName { get; set; }

        [Input("kmsKeyId")]
        public Input<string>? KmsKeyId { get; set; }

        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("sourceImageId")]
        public Input<string>? SourceImageId { get; set; }

        [Input("sourceRegionId")]
        public Input<string>? SourceRegionId { get; set; }

        [Input("tags")]
        private InputMap<object>? _tags;
        public InputMap<object> Tags
        {
            get => _tags ?? (_tags = new InputMap<object>());
            set => _tags = value;
        }

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