<reponame>pulumiverse/pulumi-vra// *** 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 Pulumiverse.Vra.Image
{
    public static class GetProfile
    {
        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// This is an example of how to read an image profile as data source.
        /// 
        /// **Image profile data source by its id:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Image.GetProfile.Invoke(new()
        ///     {
        ///         Filter = "name eq 'foobar'",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// **Vra image profile data source filter by region id:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Image.GetProfile.Invoke(new()
        ///     {
        ///         RegionId = vra_image_profile.This.Region_id,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// An image profile data source supports the following arguments:
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetProfileResult> InvokeAsync(GetProfileArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetProfileResult>("vra:image/getProfile:getProfile", args ?? new GetProfileArgs(), options.WithDefaults());

        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// This is an example of how to read an image profile as data source.
        /// 
        /// **Image profile data source by its id:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Image.GetProfile.Invoke(new()
        ///     {
        ///         Filter = "name eq 'foobar'",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// **Vra image profile data source filter by region id:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Image.GetProfile.Invoke(new()
        ///     {
        ///         RegionId = vra_image_profile.This.Region_id,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// An image profile data source supports the following arguments:
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetProfileResult> Invoke(GetProfileInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetProfileResult>("vra:image/getProfile:getProfile", args ?? new GetProfileInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetProfileArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// A human-friendly description.
        /// </summary>
        [Input("description")]
        public string? Description { get; set; }

        /// <summary>
        /// Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '&lt;regionId&gt;' and cloudAccountId eq '&lt;cloudAccountId&gt;'.
        /// </summary>
        [Input("filter")]
        public string? Filter { get; set; }

        /// <summary>
        /// The id of the image profile instance.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        [Input("imageMappings")]
        private List<Inputs.GetProfileImageMappingArgs>? _imageMappings;

        /// <summary>
        /// Image mapping defined for the corresponding region.
        /// </summary>
        public List<Inputs.GetProfileImageMappingArgs> ImageMappings
        {
            get => _imageMappings ?? (_imageMappings = new List<Inputs.GetProfileImageMappingArgs>());
            set => _imageMappings = value;
        }

        /// <summary>
        /// A human-friendly name used as an identifier in APIs that support this option.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        /// <summary>
        /// The id of the region for which this profile is defined as in vRealize Automation(vRA).
        /// </summary>
        [Input("regionId")]
        public string? RegionId { get; set; }

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

    public sealed class GetProfileInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// A human-friendly description.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '&lt;regionId&gt;' and cloudAccountId eq '&lt;cloudAccountId&gt;'.
        /// </summary>
        [Input("filter")]
        public Input<string>? Filter { get; set; }

        /// <summary>
        /// The id of the image profile instance.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        [Input("imageMappings")]
        private InputList<Inputs.GetProfileImageMappingInputArgs>? _imageMappings;

        /// <summary>
        /// Image mapping defined for the corresponding region.
        /// </summary>
        public InputList<Inputs.GetProfileImageMappingInputArgs> ImageMappings
        {
            get => _imageMappings ?? (_imageMappings = new InputList<Inputs.GetProfileImageMappingInputArgs>());
            set => _imageMappings = value;
        }

        /// <summary>
        /// A human-friendly name used as an identifier in APIs that support this option.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The id of the region for which this profile is defined as in vRealize Automation(vRA).
        /// </summary>
        [Input("regionId")]
        public Input<string>? RegionId { get; set; }

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


    [OutputType]
    public sealed class GetProfileResult
    {
        /// <summary>
        /// Date when the entity was created. The date is in ISO 6801 and UTC.
        /// </summary>
        public readonly string CreatedAt;
        /// <summary>
        /// A human-friendly description.
        /// </summary>
        public readonly string? Description;
        /// <summary>
        /// The external regionId of the resource.
        /// </summary>
        public readonly string ExternalRegionId;
        public readonly string? Filter;
        public readonly string Id;
        /// <summary>
        /// Image mapping defined for the corresponding region.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetProfileImageMappingResult> ImageMappings;
        public readonly string Name;
        /// <summary>
        /// Email of the user that owns the entity.
        /// </summary>
        public readonly string Owner;
        public readonly string RegionId;
        /// <summary>
        /// Date when the entity was last updated. The date is ISO 8601 and UTC.
        /// </summary>
        public readonly string UpdatedAt;

        [OutputConstructor]
        private GetProfileResult(
            string createdAt,

            string? description,

            string externalRegionId,

            string? filter,

            string id,

            ImmutableArray<Outputs.GetProfileImageMappingResult> imageMappings,

            string name,

            string owner,

            string regionId,

            string updatedAt)
        {
            CreatedAt = createdAt;
            Description = description;
            ExternalRegionId = externalRegionId;
            Filter = filter;
            Id = id;
            ImageMappings = imageMappings;
            Name = name;
            Owner = owner;
            RegionId = regionId;
            UpdatedAt = updatedAt;
        }
    }
}
