<reponame>rhysmdnz/pulumi-alicloud-rhys-hacks// *** 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.CloudSso
{
    /// <summary>
    /// Provides a Cloud SSO SCIM Server Credential resource.
    /// 
    /// For information about Cloud SSO SCIM Server Credential and how to use it, see [What is Cloud SSO SCIM Server Credential](https://www.alibabacloud.com/help/doc-detail/264937.html).
    /// 
    /// &gt; **NOTE:** Available in v1.138.0+.
    /// 
    /// &gt; **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region
    /// 
    /// ## Import
    /// 
    /// Cloud SSO SCIM Server Credential can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:cloudsso/scimServerCredential:ScimServerCredential example &lt;directory_id&gt;:&lt;credential_id&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:cloudsso/scimServerCredential:ScimServerCredential")]
    public partial class ScimServerCredential : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The CredentialId of the resource.
        /// </summary>
        [Output("credentialId")]
        public Output<string> CredentialId { get; private set; } = null!;

        /// <summary>
        /// The ID of the Directory.
        /// </summary>
        [Output("directoryId")]
        public Output<string> DirectoryId { get; private set; } = null!;

        /// <summary>
        /// The Status of the resource. Valid values: `Disabled`, `Enabled`.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;


        /// <summary>
        /// Create a ScimServerCredential 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 ScimServerCredential(string name, ScimServerCredentialArgs args, CustomResourceOptions? options = null)
            : base("alicloud:cloudsso/scimServerCredential:ScimServerCredential", name, args ?? new ScimServerCredentialArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class ScimServerCredentialArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The ID of the Directory.
        /// </summary>
        [Input("directoryId", required: true)]
        public Input<string> DirectoryId { get; set; } = null!;

        /// <summary>
        /// The Status of the resource. Valid values: `Disabled`, `Enabled`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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

    public sealed class ScimServerCredentialState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The CredentialId of the resource.
        /// </summary>
        [Input("credentialId")]
        public Input<string>? CredentialId { get; set; }

        /// <summary>
        /// The ID of the Directory.
        /// </summary>
        [Input("directoryId")]
        public Input<string>? DirectoryId { get; set; }

        /// <summary>
        /// The Status of the resource. Valid values: `Disabled`, `Enabled`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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