// *** 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.Xyz { public static class GetDataSource { public static Task InvokeAsync(GetDataSourceArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("xyz:index/getDataSource:getDataSource", args ?? new GetDataSourceArgs(), options.WithDefaults()); public static Output Invoke(GetDataSourceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("xyz:index/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults()); public static Output Invoke(GetDataSourceInvokeArgs args, InvokeOutputOptions options) => global::Pulumi.Deployment.Instance.Invoke("xyz:index/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults()); } public sealed class GetDataSourceArgs : global::Pulumi.InvokeArgs { [Input("sampleAttribute", required: true)] public string SampleAttribute { get; set; } = null!; public GetDataSourceArgs() { } public static new GetDataSourceArgs Empty => new GetDataSourceArgs(); } public sealed class GetDataSourceInvokeArgs : global::Pulumi.InvokeArgs { [Input("sampleAttribute", required: true)] public Input SampleAttribute { get; set; } = null!; public GetDataSourceInvokeArgs() { } public static new GetDataSourceInvokeArgs Empty => new GetDataSourceInvokeArgs(); } [OutputType] public sealed class GetDataSourceResult { /// /// The provider-assigned unique ID for this managed resource. /// public readonly string Id; public readonly string SampleAttribute; [OutputConstructor] private GetDataSourceResult( string id, string sampleAttribute) { Id = id; SampleAttribute = sampleAttribute; } } }