@pulumi/gcp 6.30.0 → 6.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bigquery/connection.d.ts +14 -14
- package/bigquery/connection.js +14 -14
- package/bigquery/connectionIamBinding.d.ts +214 -0
- package/bigquery/connectionIamBinding.js +155 -0
- package/bigquery/connectionIamBinding.js.map +1 -0
- package/bigquery/connectionIamMember.d.ts +214 -0
- package/bigquery/connectionIamMember.js +155 -0
- package/bigquery/connectionIamMember.js.map +1 -0
- package/bigquery/connectionIamPolicy.d.ts +204 -0
- package/bigquery/connectionIamPolicy.js +148 -0
- package/bigquery/connectionIamPolicy.js.map +1 -0
- package/bigquery/index.d.ts +3 -0
- package/bigquery/index.js +15 -0
- package/bigquery/index.js.map +1 -1
- package/billing/budget.d.ts +46 -0
- package/billing/budget.js +46 -0
- package/billing/budget.js.map +1 -1
- package/certificateauthority/authority.d.ts +85 -23
- package/certificateauthority/authority.js +56 -17
- package/certificateauthority/authority.js.map +1 -1
- package/certificateauthority/certificate.d.ts +14 -5
- package/certificateauthority/certificate.js.map +1 -1
- package/certificateauthority/getAuthority.d.ts +2 -0
- package/certificateauthority/getAuthority.js.map +1 -1
- package/cloudfunctions/function.d.ts +4 -3
- package/cloudfunctions/function.js +1 -0
- package/cloudfunctions/function.js.map +1 -1
- package/cloudfunctionsv2/function.d.ts +6 -2
- package/cloudfunctionsv2/function.js +6 -2
- package/cloudfunctionsv2/function.js.map +1 -1
- package/cloudrun/service.d.ts +424 -0
- package/cloudrun/service.js +424 -0
- package/cloudrun/service.js.map +1 -1
- package/cloudtasks/index.d.ts +3 -0
- package/cloudtasks/index.js +15 -0
- package/cloudtasks/index.js.map +1 -1
- package/cloudtasks/queueIamBinding.d.ts +190 -0
- package/cloudtasks/queueIamBinding.js +149 -0
- package/cloudtasks/queueIamBinding.js.map +1 -0
- package/cloudtasks/queueIamMember.d.ts +190 -0
- package/cloudtasks/queueIamMember.js +149 -0
- package/cloudtasks/queueIamMember.js.map +1 -0
- package/cloudtasks/queueIamPolicy.d.ts +180 -0
- package/cloudtasks/queueIamPolicy.js +142 -0
- package/cloudtasks/queueIamPolicy.js.map +1 -0
- package/compute/globalForwardingRule.d.ts +17 -2
- package/compute/globalForwardingRule.js +17 -2
- package/compute/globalForwardingRule.js.map +1 -1
- package/compute/networkEndpointGroup.d.ts +6 -3
- package/compute/networkEndpointGroup.js.map +1 -1
- package/dataproc/autoscalingPolicyIamBinding.d.ts +208 -0
- package/dataproc/autoscalingPolicyIamBinding.js +155 -0
- package/dataproc/autoscalingPolicyIamBinding.js.map +1 -0
- package/dataproc/autoscalingPolicyIamMember.d.ts +208 -0
- package/dataproc/autoscalingPolicyIamMember.js +155 -0
- package/dataproc/autoscalingPolicyIamMember.js.map +1 -0
- package/dataproc/autoscalingPolicyIamPolicy.d.ts +198 -0
- package/dataproc/autoscalingPolicyIamPolicy.js +148 -0
- package/dataproc/autoscalingPolicyIamPolicy.js.map +1 -0
- package/dataproc/index.d.ts +6 -0
- package/dataproc/index.js +30 -0
- package/dataproc/index.js.map +1 -1
- package/dataproc/metastoreServiceIamBinding.d.ts +130 -0
- package/dataproc/metastoreServiceIamBinding.js +95 -0
- package/dataproc/metastoreServiceIamBinding.js.map +1 -0
- package/dataproc/metastoreServiceIamMember.d.ts +130 -0
- package/dataproc/metastoreServiceIamMember.js +95 -0
- package/dataproc/metastoreServiceIamMember.js.map +1 -0
- package/dataproc/metastoreServiceIamPolicy.d.ts +120 -0
- package/dataproc/metastoreServiceIamPolicy.js +88 -0
- package/dataproc/metastoreServiceIamPolicy.js.map +1 -0
- package/logging/projectSink.d.ts +80 -0
- package/logging/projectSink.js +80 -0
- package/logging/projectSink.js.map +1 -1
- package/monitoring/monitoredProject.d.ts +2 -6
- package/monitoring/monitoredProject.js +2 -6
- package/monitoring/monitoredProject.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projects/serviceIdentity.d.ts +4 -0
- package/projects/serviceIdentity.js +1 -1
- package/projects/serviceIdentity.js.map +1 -1
- package/redis/getInstance.d.ts +1 -0
- package/redis/getInstance.js.map +1 -1
- package/redis/instance.d.ts +42 -0
- package/redis/instance.js +29 -0
- package/redis/instance.js.map +1 -1
- package/spanner/database.d.ts +44 -12
- package/spanner/database.js +13 -0
- package/spanner/database.js.map +1 -1
- package/sql/getBackupRun.d.ts +11 -0
- package/sql/getBackupRun.js +1 -0
- package/sql/getBackupRun.js.map +1 -1
- package/types/input.d.ts +144 -7
- package/types/output.d.ts +162 -11
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Three different resources help you manage your IAM policy for Cloud Tasks Queue. Each of these resources serves a different use case:
|
|
5
|
+
*
|
|
6
|
+
* * `gcp.cloudtasks.QueueIamPolicy`: Authoritative. Sets the IAM policy for the queue and replaces any existing policy already attached.
|
|
7
|
+
* * `gcp.cloudtasks.QueueIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the queue are preserved.
|
|
8
|
+
* * `gcp.cloudtasks.QueueIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the queue are preserved.
|
|
9
|
+
*
|
|
10
|
+
* > **Note:** `gcp.cloudtasks.QueueIamPolicy` **cannot** be used in conjunction with `gcp.cloudtasks.QueueIamBinding` and `gcp.cloudtasks.QueueIamMember` or they will fight over what your policy should be.
|
|
11
|
+
*
|
|
12
|
+
* > **Note:** `gcp.cloudtasks.QueueIamBinding` resources **can be** used in conjunction with `gcp.cloudtasks.QueueIamMember` resources **only if** they do not grant privilege to the same role.
|
|
13
|
+
*
|
|
14
|
+
* ## google\_cloud\_tasks\_queue\_iam\_policy
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as gcp from "@pulumi/gcp";
|
|
19
|
+
*
|
|
20
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
21
|
+
* bindings: [{
|
|
22
|
+
* role: "roles/viewer",
|
|
23
|
+
* members: ["user:jane@example.com"],
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* const policy = new gcp.cloudtasks.QueueIamPolicy("policy", {
|
|
27
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
28
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
29
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## google\_cloud\_tasks\_queue\_iam\_binding
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as gcp from "@pulumi/gcp";
|
|
38
|
+
*
|
|
39
|
+
* const binding = new gcp.cloudtasks.QueueIamBinding("binding", {
|
|
40
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
41
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
42
|
+
* role: "roles/viewer",
|
|
43
|
+
* members: ["user:jane@example.com"],
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* ## google\_cloud\_tasks\_queue\_iam\_member
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as gcp from "@pulumi/gcp";
|
|
52
|
+
*
|
|
53
|
+
* const member = new gcp.cloudtasks.QueueIamMember("member", {
|
|
54
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
55
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
56
|
+
* role: "roles/viewer",
|
|
57
|
+
* member: "user:jane@example.com",
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ## Import
|
|
62
|
+
*
|
|
63
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/queues/{{name}} * {{project}}/{{location}}/{{name}} * {{location}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Tasks queue IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
64
|
+
*
|
|
65
|
+
* ```sh
|
|
66
|
+
* $ pulumi import gcp:cloudtasks/queueIamBinding:QueueIamBinding editor "projects/{{project}}/locations/{{location}}/queues/{{queue}} roles/viewer user:jane@example.com"
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
70
|
+
*
|
|
71
|
+
* ```sh
|
|
72
|
+
* $ pulumi import gcp:cloudtasks/queueIamBinding:QueueIamBinding editor "projects/{{project}}/locations/{{location}}/queues/{{queue}} roles/viewer"
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
76
|
+
*
|
|
77
|
+
* ```sh
|
|
78
|
+
* $ pulumi import gcp:cloudtasks/queueIamBinding:QueueIamBinding editor projects/{{project}}/locations/{{location}}/queues/{{queue}}
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
82
|
+
*
|
|
83
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
84
|
+
*/
|
|
85
|
+
export declare class QueueIamBinding extends pulumi.CustomResource {
|
|
86
|
+
/**
|
|
87
|
+
* Get an existing QueueIamBinding resource's state with the given name, ID, and optional extra
|
|
88
|
+
* properties used to qualify the lookup.
|
|
89
|
+
*
|
|
90
|
+
* @param name The _unique_ name of the resulting resource.
|
|
91
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
92
|
+
* @param state Any extra arguments used during the lookup.
|
|
93
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
94
|
+
*/
|
|
95
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: QueueIamBindingState, opts?: pulumi.CustomResourceOptions): QueueIamBinding;
|
|
96
|
+
/**
|
|
97
|
+
* Returns true if the given object is an instance of QueueIamBinding. This is designed to work even
|
|
98
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
99
|
+
*/
|
|
100
|
+
static isInstance(obj: any): obj is QueueIamBinding;
|
|
101
|
+
readonly condition: pulumi.Output<outputs.cloudtasks.QueueIamBindingCondition | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* (Computed) The etag of the IAM policy.
|
|
104
|
+
*/
|
|
105
|
+
readonly etag: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The location of the queue Used to find the parent resource to bind the IAM policy to
|
|
108
|
+
*/
|
|
109
|
+
readonly location: pulumi.Output<string>;
|
|
110
|
+
readonly members: pulumi.Output<string[]>;
|
|
111
|
+
/**
|
|
112
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
113
|
+
*/
|
|
114
|
+
readonly name: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the project in which the resource belongs.
|
|
117
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
118
|
+
*/
|
|
119
|
+
readonly project: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The role that should be applied. Only one
|
|
122
|
+
* `gcp.cloudtasks.QueueIamBinding` can be used per role. Note that custom roles must be of the format
|
|
123
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
124
|
+
*/
|
|
125
|
+
readonly role: pulumi.Output<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Create a QueueIamBinding resource with the given unique name, arguments, and options.
|
|
128
|
+
*
|
|
129
|
+
* @param name The _unique_ name of the resource.
|
|
130
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
131
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
132
|
+
*/
|
|
133
|
+
constructor(name: string, args: QueueIamBindingArgs, opts?: pulumi.CustomResourceOptions);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Input properties used for looking up and filtering QueueIamBinding resources.
|
|
137
|
+
*/
|
|
138
|
+
export interface QueueIamBindingState {
|
|
139
|
+
condition?: pulumi.Input<inputs.cloudtasks.QueueIamBindingCondition>;
|
|
140
|
+
/**
|
|
141
|
+
* (Computed) The etag of the IAM policy.
|
|
142
|
+
*/
|
|
143
|
+
etag?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The location of the queue Used to find the parent resource to bind the IAM policy to
|
|
146
|
+
*/
|
|
147
|
+
location?: pulumi.Input<string>;
|
|
148
|
+
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
149
|
+
/**
|
|
150
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
151
|
+
*/
|
|
152
|
+
name?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the project in which the resource belongs.
|
|
155
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
156
|
+
*/
|
|
157
|
+
project?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The role that should be applied. Only one
|
|
160
|
+
* `gcp.cloudtasks.QueueIamBinding` can be used per role. Note that custom roles must be of the format
|
|
161
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
162
|
+
*/
|
|
163
|
+
role?: pulumi.Input<string>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* The set of arguments for constructing a QueueIamBinding resource.
|
|
167
|
+
*/
|
|
168
|
+
export interface QueueIamBindingArgs {
|
|
169
|
+
condition?: pulumi.Input<inputs.cloudtasks.QueueIamBindingCondition>;
|
|
170
|
+
/**
|
|
171
|
+
* The location of the queue Used to find the parent resource to bind the IAM policy to
|
|
172
|
+
*/
|
|
173
|
+
location?: pulumi.Input<string>;
|
|
174
|
+
members: pulumi.Input<pulumi.Input<string>[]>;
|
|
175
|
+
/**
|
|
176
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
177
|
+
*/
|
|
178
|
+
name?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* The ID of the project in which the resource belongs.
|
|
181
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
182
|
+
*/
|
|
183
|
+
project?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The role that should be applied. Only one
|
|
186
|
+
* `gcp.cloudtasks.QueueIamBinding` can be used per role. Note that custom roles must be of the format
|
|
187
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
188
|
+
*/
|
|
189
|
+
role: pulumi.Input<string>;
|
|
190
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.QueueIamBinding = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Three different resources help you manage your IAM policy for Cloud Tasks Queue. Each of these resources serves a different use case:
|
|
10
|
+
*
|
|
11
|
+
* * `gcp.cloudtasks.QueueIamPolicy`: Authoritative. Sets the IAM policy for the queue and replaces any existing policy already attached.
|
|
12
|
+
* * `gcp.cloudtasks.QueueIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the queue are preserved.
|
|
13
|
+
* * `gcp.cloudtasks.QueueIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the queue are preserved.
|
|
14
|
+
*
|
|
15
|
+
* > **Note:** `gcp.cloudtasks.QueueIamPolicy` **cannot** be used in conjunction with `gcp.cloudtasks.QueueIamBinding` and `gcp.cloudtasks.QueueIamMember` or they will fight over what your policy should be.
|
|
16
|
+
*
|
|
17
|
+
* > **Note:** `gcp.cloudtasks.QueueIamBinding` resources **can be** used in conjunction with `gcp.cloudtasks.QueueIamMember` resources **only if** they do not grant privilege to the same role.
|
|
18
|
+
*
|
|
19
|
+
* ## google\_cloud\_tasks\_queue\_iam\_policy
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as gcp from "@pulumi/gcp";
|
|
24
|
+
*
|
|
25
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
26
|
+
* bindings: [{
|
|
27
|
+
* role: "roles/viewer",
|
|
28
|
+
* members: ["user:jane@example.com"],
|
|
29
|
+
* }],
|
|
30
|
+
* });
|
|
31
|
+
* const policy = new gcp.cloudtasks.QueueIamPolicy("policy", {
|
|
32
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
33
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
34
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## google\_cloud\_tasks\_queue\_iam\_binding
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as gcp from "@pulumi/gcp";
|
|
43
|
+
*
|
|
44
|
+
* const binding = new gcp.cloudtasks.QueueIamBinding("binding", {
|
|
45
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
46
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
47
|
+
* role: "roles/viewer",
|
|
48
|
+
* members: ["user:jane@example.com"],
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## google\_cloud\_tasks\_queue\_iam\_member
|
|
53
|
+
*
|
|
54
|
+
* ```typescript
|
|
55
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
56
|
+
* import * as gcp from "@pulumi/gcp";
|
|
57
|
+
*
|
|
58
|
+
* const member = new gcp.cloudtasks.QueueIamMember("member", {
|
|
59
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
60
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
61
|
+
* role: "roles/viewer",
|
|
62
|
+
* member: "user:jane@example.com",
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Import
|
|
67
|
+
*
|
|
68
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/queues/{{name}} * {{project}}/{{location}}/{{name}} * {{location}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Tasks queue IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
69
|
+
*
|
|
70
|
+
* ```sh
|
|
71
|
+
* $ pulumi import gcp:cloudtasks/queueIamBinding:QueueIamBinding editor "projects/{{project}}/locations/{{location}}/queues/{{queue}} roles/viewer user:jane@example.com"
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
75
|
+
*
|
|
76
|
+
* ```sh
|
|
77
|
+
* $ pulumi import gcp:cloudtasks/queueIamBinding:QueueIamBinding editor "projects/{{project}}/locations/{{location}}/queues/{{queue}} roles/viewer"
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
81
|
+
*
|
|
82
|
+
* ```sh
|
|
83
|
+
* $ pulumi import gcp:cloudtasks/queueIamBinding:QueueIamBinding editor projects/{{project}}/locations/{{location}}/queues/{{queue}}
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
87
|
+
*
|
|
88
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
89
|
+
*/
|
|
90
|
+
class QueueIamBinding extends pulumi.CustomResource {
|
|
91
|
+
constructor(name, argsOrState, opts) {
|
|
92
|
+
let resourceInputs = {};
|
|
93
|
+
opts = opts || {};
|
|
94
|
+
if (opts.id) {
|
|
95
|
+
const state = argsOrState;
|
|
96
|
+
resourceInputs["condition"] = state ? state.condition : undefined;
|
|
97
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
98
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
99
|
+
resourceInputs["members"] = state ? state.members : undefined;
|
|
100
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
101
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
102
|
+
resourceInputs["role"] = state ? state.role : undefined;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
const args = argsOrState;
|
|
106
|
+
if ((!args || args.members === undefined) && !opts.urn) {
|
|
107
|
+
throw new Error("Missing required property 'members'");
|
|
108
|
+
}
|
|
109
|
+
if ((!args || args.role === undefined) && !opts.urn) {
|
|
110
|
+
throw new Error("Missing required property 'role'");
|
|
111
|
+
}
|
|
112
|
+
resourceInputs["condition"] = args ? args.condition : undefined;
|
|
113
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
114
|
+
resourceInputs["members"] = args ? args.members : undefined;
|
|
115
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
116
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
117
|
+
resourceInputs["role"] = args ? args.role : undefined;
|
|
118
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
119
|
+
}
|
|
120
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
121
|
+
super(QueueIamBinding.__pulumiType, name, resourceInputs, opts);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Get an existing QueueIamBinding resource's state with the given name, ID, and optional extra
|
|
125
|
+
* properties used to qualify the lookup.
|
|
126
|
+
*
|
|
127
|
+
* @param name The _unique_ name of the resulting resource.
|
|
128
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
129
|
+
* @param state Any extra arguments used during the lookup.
|
|
130
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
131
|
+
*/
|
|
132
|
+
static get(name, id, state, opts) {
|
|
133
|
+
return new QueueIamBinding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Returns true if the given object is an instance of QueueIamBinding. This is designed to work even
|
|
137
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
138
|
+
*/
|
|
139
|
+
static isInstance(obj) {
|
|
140
|
+
if (obj === undefined || obj === null) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
return obj['__pulumiType'] === QueueIamBinding.__pulumiType;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.QueueIamBinding = QueueIamBinding;
|
|
147
|
+
/** @internal */
|
|
148
|
+
QueueIamBinding.__pulumiType = 'gcp:cloudtasks/queueIamBinding:QueueIamBinding';
|
|
149
|
+
//# sourceMappingURL=queueIamBinding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queueIamBinding.js","sourceRoot":"","sources":["../../cloudtasks/queueIamBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiFG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA8DtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IA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AI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CA6FC;AA/EG,gBAAgB;AACO,4BAAY,GAAG,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Three different resources help you manage your IAM policy for Cloud Tasks Queue. Each of these resources serves a different use case:
|
|
5
|
+
*
|
|
6
|
+
* * `gcp.cloudtasks.QueueIamPolicy`: Authoritative. Sets the IAM policy for the queue and replaces any existing policy already attached.
|
|
7
|
+
* * `gcp.cloudtasks.QueueIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the queue are preserved.
|
|
8
|
+
* * `gcp.cloudtasks.QueueIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the queue are preserved.
|
|
9
|
+
*
|
|
10
|
+
* > **Note:** `gcp.cloudtasks.QueueIamPolicy` **cannot** be used in conjunction with `gcp.cloudtasks.QueueIamBinding` and `gcp.cloudtasks.QueueIamMember` or they will fight over what your policy should be.
|
|
11
|
+
*
|
|
12
|
+
* > **Note:** `gcp.cloudtasks.QueueIamBinding` resources **can be** used in conjunction with `gcp.cloudtasks.QueueIamMember` resources **only if** they do not grant privilege to the same role.
|
|
13
|
+
*
|
|
14
|
+
* ## google\_cloud\_tasks\_queue\_iam\_policy
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as gcp from "@pulumi/gcp";
|
|
19
|
+
*
|
|
20
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
21
|
+
* bindings: [{
|
|
22
|
+
* role: "roles/viewer",
|
|
23
|
+
* members: ["user:jane@example.com"],
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* const policy = new gcp.cloudtasks.QueueIamPolicy("policy", {
|
|
27
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
28
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
29
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## google\_cloud\_tasks\_queue\_iam\_binding
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as gcp from "@pulumi/gcp";
|
|
38
|
+
*
|
|
39
|
+
* const binding = new gcp.cloudtasks.QueueIamBinding("binding", {
|
|
40
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
41
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
42
|
+
* role: "roles/viewer",
|
|
43
|
+
* members: ["user:jane@example.com"],
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* ## google\_cloud\_tasks\_queue\_iam\_member
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as gcp from "@pulumi/gcp";
|
|
52
|
+
*
|
|
53
|
+
* const member = new gcp.cloudtasks.QueueIamMember("member", {
|
|
54
|
+
* project: google_cloud_tasks_queue["default"].project,
|
|
55
|
+
* location: google_cloud_tasks_queue["default"].location,
|
|
56
|
+
* role: "roles/viewer",
|
|
57
|
+
* member: "user:jane@example.com",
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ## Import
|
|
62
|
+
*
|
|
63
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/queues/{{name}} * {{project}}/{{location}}/{{name}} * {{location}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Tasks queue IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
64
|
+
*
|
|
65
|
+
* ```sh
|
|
66
|
+
* $ pulumi import gcp:cloudtasks/queueIamMember:QueueIamMember editor "projects/{{project}}/locations/{{location}}/queues/{{queue}} roles/viewer user:jane@example.com"
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
70
|
+
*
|
|
71
|
+
* ```sh
|
|
72
|
+
* $ pulumi import gcp:cloudtasks/queueIamMember:QueueIamMember editor "projects/{{project}}/locations/{{location}}/queues/{{queue}} roles/viewer"
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
76
|
+
*
|
|
77
|
+
* ```sh
|
|
78
|
+
* $ pulumi import gcp:cloudtasks/queueIamMember:QueueIamMember editor projects/{{project}}/locations/{{location}}/queues/{{queue}}
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
82
|
+
*
|
|
83
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
84
|
+
*/
|
|
85
|
+
export declare class QueueIamMember extends pulumi.CustomResource {
|
|
86
|
+
/**
|
|
87
|
+
* Get an existing QueueIamMember resource's state with the given name, ID, and optional extra
|
|
88
|
+
* properties used to qualify the lookup.
|
|
89
|
+
*
|
|
90
|
+
* @param name The _unique_ name of the resulting resource.
|
|
91
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
92
|
+
* @param state Any extra arguments used during the lookup.
|
|
93
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
94
|
+
*/
|
|
95
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: QueueIamMemberState, opts?: pulumi.CustomResourceOptions): QueueIamMember;
|
|
96
|
+
/**
|
|
97
|
+
* Returns true if the given object is an instance of QueueIamMember. This is designed to work even
|
|
98
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
99
|
+
*/
|
|
100
|
+
static isInstance(obj: any): obj is QueueIamMember;
|
|
101
|
+
readonly condition: pulumi.Output<outputs.cloudtasks.QueueIamMemberCondition | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* (Computed) The etag of the IAM policy.
|
|
104
|
+
*/
|
|
105
|
+
readonly etag: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The location of the queue Used to find the parent resource to bind the IAM policy to
|
|
108
|
+
*/
|
|
109
|
+
readonly location: pulumi.Output<string>;
|
|
110
|
+
readonly member: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
113
|
+
*/
|
|
114
|
+
readonly name: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the project in which the resource belongs.
|
|
117
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
118
|
+
*/
|
|
119
|
+
readonly project: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The role that should be applied. Only one
|
|
122
|
+
* `gcp.cloudtasks.QueueIamBinding` can be used per role. Note that custom roles must be of the format
|
|
123
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
124
|
+
*/
|
|
125
|
+
readonly role: pulumi.Output<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Create a QueueIamMember resource with the given unique name, arguments, and options.
|
|
128
|
+
*
|
|
129
|
+
* @param name The _unique_ name of the resource.
|
|
130
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
131
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
132
|
+
*/
|
|
133
|
+
constructor(name: string, args: QueueIamMemberArgs, opts?: pulumi.CustomResourceOptions);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Input properties used for looking up and filtering QueueIamMember resources.
|
|
137
|
+
*/
|
|
138
|
+
export interface QueueIamMemberState {
|
|
139
|
+
condition?: pulumi.Input<inputs.cloudtasks.QueueIamMemberCondition>;
|
|
140
|
+
/**
|
|
141
|
+
* (Computed) The etag of the IAM policy.
|
|
142
|
+
*/
|
|
143
|
+
etag?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The location of the queue Used to find the parent resource to bind the IAM policy to
|
|
146
|
+
*/
|
|
147
|
+
location?: pulumi.Input<string>;
|
|
148
|
+
member?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
151
|
+
*/
|
|
152
|
+
name?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the project in which the resource belongs.
|
|
155
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
156
|
+
*/
|
|
157
|
+
project?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The role that should be applied. Only one
|
|
160
|
+
* `gcp.cloudtasks.QueueIamBinding` can be used per role. Note that custom roles must be of the format
|
|
161
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
162
|
+
*/
|
|
163
|
+
role?: pulumi.Input<string>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* The set of arguments for constructing a QueueIamMember resource.
|
|
167
|
+
*/
|
|
168
|
+
export interface QueueIamMemberArgs {
|
|
169
|
+
condition?: pulumi.Input<inputs.cloudtasks.QueueIamMemberCondition>;
|
|
170
|
+
/**
|
|
171
|
+
* The location of the queue Used to find the parent resource to bind the IAM policy to
|
|
172
|
+
*/
|
|
173
|
+
location?: pulumi.Input<string>;
|
|
174
|
+
member: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
177
|
+
*/
|
|
178
|
+
name?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* The ID of the project in which the resource belongs.
|
|
181
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
182
|
+
*/
|
|
183
|
+
project?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The role that should be applied. Only one
|
|
186
|
+
* `gcp.cloudtasks.QueueIamBinding` can be used per role. Note that custom roles must be of the format
|
|
187
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
188
|
+
*/
|
|
189
|
+
role: pulumi.Input<string>;
|
|
190
|
+
}
|