|
| 1 | +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** |
| 2 | +// *** Do not edit by hand unless you're certain you know what you are doing! *** |
| 3 | + |
| 4 | +using System; |
| 5 | +using System.Collections.Generic; |
| 6 | +using System.Collections.Immutable; |
| 7 | +using System.Threading.Tasks; |
| 8 | +using Pulumi.Serialization; |
| 9 | + |
| 10 | +namespace Pulumi.Volcengine.Iam |
| 11 | +{ |
| 12 | + public static class GetOidcProviders |
| 13 | + { |
| 14 | + /// <summary> |
| 15 | + /// Use this data source to query detailed information of iam oidc providers |
| 16 | + /// ## Example Usage |
| 17 | + /// |
| 18 | + /// ```csharp |
| 19 | + /// using System.Collections.Generic; |
| 20 | + /// using System.Linq; |
| 21 | + /// using Pulumi; |
| 22 | + /// using Volcengine = Pulumi.Volcengine; |
| 23 | + /// |
| 24 | + /// return await Deployment.RunAsync(() => |
| 25 | + /// { |
| 26 | + /// var foo = Volcengine.Iam.GetOidcProviders.Invoke(); |
| 27 | + /// |
| 28 | + /// }); |
| 29 | + /// ``` |
| 30 | + /// </summary> |
| 31 | + public static Task<GetOidcProvidersResult> InvokeAsync(GetOidcProvidersArgs? args = null, InvokeOptions? options = null) |
| 32 | + => global::Pulumi.Deployment.Instance.InvokeAsync<GetOidcProvidersResult>("volcengine:iam/getOidcProviders:getOidcProviders", args ?? new GetOidcProvidersArgs(), options.WithDefaults()); |
| 33 | + |
| 34 | + /// <summary> |
| 35 | + /// Use this data source to query detailed information of iam oidc providers |
| 36 | + /// ## Example Usage |
| 37 | + /// |
| 38 | + /// ```csharp |
| 39 | + /// using System.Collections.Generic; |
| 40 | + /// using System.Linq; |
| 41 | + /// using Pulumi; |
| 42 | + /// using Volcengine = Pulumi.Volcengine; |
| 43 | + /// |
| 44 | + /// return await Deployment.RunAsync(() => |
| 45 | + /// { |
| 46 | + /// var foo = Volcengine.Iam.GetOidcProviders.Invoke(); |
| 47 | + /// |
| 48 | + /// }); |
| 49 | + /// ``` |
| 50 | + /// </summary> |
| 51 | + public static Output<GetOidcProvidersResult> Invoke(GetOidcProvidersInvokeArgs? args = null, InvokeOptions? options = null) |
| 52 | + => global::Pulumi.Deployment.Instance.Invoke<GetOidcProvidersResult>("volcengine:iam/getOidcProviders:getOidcProviders", args ?? new GetOidcProvidersInvokeArgs(), options.WithDefaults()); |
| 53 | + } |
| 54 | + |
| 55 | + |
| 56 | + public sealed class GetOidcProvidersArgs : global::Pulumi.InvokeArgs |
| 57 | + { |
| 58 | + /// <summary> |
| 59 | + /// File name where to save data source results. |
| 60 | + /// </summary> |
| 61 | + [Input("outputFile")] |
| 62 | + public string? OutputFile { get; set; } |
| 63 | + |
| 64 | + public GetOidcProvidersArgs() |
| 65 | + { |
| 66 | + } |
| 67 | + public static new GetOidcProvidersArgs Empty => new GetOidcProvidersArgs(); |
| 68 | + } |
| 69 | + |
| 70 | + public sealed class GetOidcProvidersInvokeArgs : global::Pulumi.InvokeArgs |
| 71 | + { |
| 72 | + /// <summary> |
| 73 | + /// File name where to save data source results. |
| 74 | + /// </summary> |
| 75 | + [Input("outputFile")] |
| 76 | + public Input<string>? OutputFile { get; set; } |
| 77 | + |
| 78 | + public GetOidcProvidersInvokeArgs() |
| 79 | + { |
| 80 | + } |
| 81 | + public static new GetOidcProvidersInvokeArgs Empty => new GetOidcProvidersInvokeArgs(); |
| 82 | + } |
| 83 | + |
| 84 | + |
| 85 | + [OutputType] |
| 86 | + public sealed class GetOidcProvidersResult |
| 87 | + { |
| 88 | + /// <summary> |
| 89 | + /// The provider-assigned unique ID for this managed resource. |
| 90 | + /// </summary> |
| 91 | + public readonly string Id; |
| 92 | + /// <summary> |
| 93 | + /// The collection of query. |
| 94 | + /// </summary> |
| 95 | + public readonly ImmutableArray<Outputs.GetOidcProvidersOidcProviderResult> OidcProviders; |
| 96 | + public readonly string? OutputFile; |
| 97 | + /// <summary> |
| 98 | + /// The total count of query. |
| 99 | + /// </summary> |
| 100 | + public readonly int TotalCount; |
| 101 | + |
| 102 | + [OutputConstructor] |
| 103 | + private GetOidcProvidersResult( |
| 104 | + string id, |
| 105 | + |
| 106 | + ImmutableArray<Outputs.GetOidcProvidersOidcProviderResult> oidcProviders, |
| 107 | + |
| 108 | + string? outputFile, |
| 109 | + |
| 110 | + int totalCount) |
| 111 | + { |
| 112 | + Id = id; |
| 113 | + OidcProviders = oidcProviders; |
| 114 | + OutputFile = outputFile; |
| 115 | + TotalCount = totalCount; |
| 116 | + } |
| 117 | + } |
| 118 | +} |
0 commit comments