|
| 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.Cen |
| 11 | +{ |
| 12 | + public static class GetGrantInstances |
| 13 | + { |
| 14 | + /// <summary> |
| 15 | + /// Use this data source to query detailed information of cen grant instances |
| 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.Cen.GetGrantInstances.Invoke(new() |
| 27 | + /// { |
| 28 | + /// InstanceId = "vpc-2bysvq1xx543k2dx0eeul****", |
| 29 | + /// InstanceRegionId = "cn-beijing", |
| 30 | + /// InstanceType = "VPC", |
| 31 | + /// }); |
| 32 | + /// |
| 33 | + /// }); |
| 34 | + /// ``` |
| 35 | + /// </summary> |
| 36 | + public static Task<GetGrantInstancesResult> InvokeAsync(GetGrantInstancesArgs? args = null, InvokeOptions? options = null) |
| 37 | + => global::Pulumi.Deployment.Instance.InvokeAsync<GetGrantInstancesResult>("volcengine:cen/getGrantInstances:getGrantInstances", args ?? new GetGrantInstancesArgs(), options.WithDefaults()); |
| 38 | + |
| 39 | + /// <summary> |
| 40 | + /// Use this data source to query detailed information of cen grant instances |
| 41 | + /// ## Example Usage |
| 42 | + /// |
| 43 | + /// ```csharp |
| 44 | + /// using System.Collections.Generic; |
| 45 | + /// using System.Linq; |
| 46 | + /// using Pulumi; |
| 47 | + /// using Volcengine = Pulumi.Volcengine; |
| 48 | + /// |
| 49 | + /// return await Deployment.RunAsync(() => |
| 50 | + /// { |
| 51 | + /// var foo = Volcengine.Cen.GetGrantInstances.Invoke(new() |
| 52 | + /// { |
| 53 | + /// InstanceId = "vpc-2bysvq1xx543k2dx0eeul****", |
| 54 | + /// InstanceRegionId = "cn-beijing", |
| 55 | + /// InstanceType = "VPC", |
| 56 | + /// }); |
| 57 | + /// |
| 58 | + /// }); |
| 59 | + /// ``` |
| 60 | + /// </summary> |
| 61 | + public static Output<GetGrantInstancesResult> Invoke(GetGrantInstancesInvokeArgs? args = null, InvokeOptions? options = null) |
| 62 | + => global::Pulumi.Deployment.Instance.Invoke<GetGrantInstancesResult>("volcengine:cen/getGrantInstances:getGrantInstances", args ?? new GetGrantInstancesInvokeArgs(), options.WithDefaults()); |
| 63 | + } |
| 64 | + |
| 65 | + |
| 66 | + public sealed class GetGrantInstancesArgs : global::Pulumi.InvokeArgs |
| 67 | + { |
| 68 | + /// <summary> |
| 69 | + /// The ID of the instance. |
| 70 | + /// </summary> |
| 71 | + [Input("instanceId")] |
| 72 | + public string? InstanceId { get; set; } |
| 73 | + |
| 74 | + /// <summary> |
| 75 | + /// The region ID of the instance. |
| 76 | + /// </summary> |
| 77 | + [Input("instanceRegionId")] |
| 78 | + public string? InstanceRegionId { get; set; } |
| 79 | + |
| 80 | + /// <summary> |
| 81 | + /// The type of the instance. Valid values: `VPC`, `DCGW`. |
| 82 | + /// </summary> |
| 83 | + [Input("instanceType")] |
| 84 | + public string? InstanceType { get; set; } |
| 85 | + |
| 86 | + /// <summary> |
| 87 | + /// File name where to save data source results. |
| 88 | + /// </summary> |
| 89 | + [Input("outputFile")] |
| 90 | + public string? OutputFile { get; set; } |
| 91 | + |
| 92 | + public GetGrantInstancesArgs() |
| 93 | + { |
| 94 | + } |
| 95 | + public static new GetGrantInstancesArgs Empty => new GetGrantInstancesArgs(); |
| 96 | + } |
| 97 | + |
| 98 | + public sealed class GetGrantInstancesInvokeArgs : global::Pulumi.InvokeArgs |
| 99 | + { |
| 100 | + /// <summary> |
| 101 | + /// The ID of the instance. |
| 102 | + /// </summary> |
| 103 | + [Input("instanceId")] |
| 104 | + public Input<string>? InstanceId { get; set; } |
| 105 | + |
| 106 | + /// <summary> |
| 107 | + /// The region ID of the instance. |
| 108 | + /// </summary> |
| 109 | + [Input("instanceRegionId")] |
| 110 | + public Input<string>? InstanceRegionId { get; set; } |
| 111 | + |
| 112 | + /// <summary> |
| 113 | + /// The type of the instance. Valid values: `VPC`, `DCGW`. |
| 114 | + /// </summary> |
| 115 | + [Input("instanceType")] |
| 116 | + public Input<string>? InstanceType { get; set; } |
| 117 | + |
| 118 | + /// <summary> |
| 119 | + /// File name where to save data source results. |
| 120 | + /// </summary> |
| 121 | + [Input("outputFile")] |
| 122 | + public Input<string>? OutputFile { get; set; } |
| 123 | + |
| 124 | + public GetGrantInstancesInvokeArgs() |
| 125 | + { |
| 126 | + } |
| 127 | + public static new GetGrantInstancesInvokeArgs Empty => new GetGrantInstancesInvokeArgs(); |
| 128 | + } |
| 129 | + |
| 130 | + |
| 131 | + [OutputType] |
| 132 | + public sealed class GetGrantInstancesResult |
| 133 | + { |
| 134 | + /// <summary> |
| 135 | + /// The collection of query. |
| 136 | + /// </summary> |
| 137 | + public readonly ImmutableArray<Outputs.GetGrantInstancesGrantRuleResult> GrantRules; |
| 138 | + /// <summary> |
| 139 | + /// The provider-assigned unique ID for this managed resource. |
| 140 | + /// </summary> |
| 141 | + public readonly string Id; |
| 142 | + /// <summary> |
| 143 | + /// The ID of the instance. |
| 144 | + /// </summary> |
| 145 | + public readonly string? InstanceId; |
| 146 | + /// <summary> |
| 147 | + /// The region ID of the instance. |
| 148 | + /// </summary> |
| 149 | + public readonly string? InstanceRegionId; |
| 150 | + /// <summary> |
| 151 | + /// The type of the instance. |
| 152 | + /// </summary> |
| 153 | + public readonly string? InstanceType; |
| 154 | + public readonly string? OutputFile; |
| 155 | + /// <summary> |
| 156 | + /// The total count of query. |
| 157 | + /// </summary> |
| 158 | + public readonly int TotalCount; |
| 159 | + |
| 160 | + [OutputConstructor] |
| 161 | + private GetGrantInstancesResult( |
| 162 | + ImmutableArray<Outputs.GetGrantInstancesGrantRuleResult> grantRules, |
| 163 | + |
| 164 | + string id, |
| 165 | + |
| 166 | + string? instanceId, |
| 167 | + |
| 168 | + string? instanceRegionId, |
| 169 | + |
| 170 | + string? instanceType, |
| 171 | + |
| 172 | + string? outputFile, |
| 173 | + |
| 174 | + int totalCount) |
| 175 | + { |
| 176 | + GrantRules = grantRules; |
| 177 | + Id = id; |
| 178 | + InstanceId = instanceId; |
| 179 | + InstanceRegionId = instanceRegionId; |
| 180 | + InstanceType = instanceType; |
| 181 | + OutputFile = outputFile; |
| 182 | + TotalCount = totalCount; |
| 183 | + } |
| 184 | + } |
| 185 | +} |
0 commit comments