@pulumi/gcp 7.36.0 → 7.37.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.
Files changed (88) hide show
  1. package/accesscontextmanager/index.d.ts +6 -0
  2. package/accesscontextmanager/index.js +11 -1
  3. package/accesscontextmanager/index.js.map +1 -1
  4. package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.d.ts +112 -0
  5. package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.js +76 -0
  6. package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.js.map +1 -0
  7. package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.d.ts +116 -0
  8. package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.js +77 -0
  9. package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.js.map +1 -0
  10. package/accesscontextmanager/servicePerimeterEgressPolicy.d.ts +1 -12
  11. package/accesscontextmanager/servicePerimeterEgressPolicy.js +1 -12
  12. package/accesscontextmanager/servicePerimeterEgressPolicy.js.map +1 -1
  13. package/accesscontextmanager/servicePerimeterIngressPolicy.d.ts +1 -12
  14. package/accesscontextmanager/servicePerimeterIngressPolicy.js +1 -12
  15. package/accesscontextmanager/servicePerimeterIngressPolicy.js.map +1 -1
  16. package/applicationintegration/client.d.ts +1 -1
  17. package/applicationintegration/client.js +1 -1
  18. package/compute/regionTargetHttpsProxy.d.ts +12 -0
  19. package/compute/regionTargetHttpsProxy.js.map +1 -1
  20. package/dataform/repository.d.ts +31 -0
  21. package/dataform/repository.js +18 -0
  22. package/dataform/repository.js.map +1 -1
  23. package/discoveryengine/dataStore.d.ts +31 -0
  24. package/discoveryengine/dataStore.js +3 -0
  25. package/discoveryengine/dataStore.js.map +1 -1
  26. package/logging/getLogViewIamPolicy.d.ts +34 -0
  27. package/logging/getLogViewIamPolicy.js +34 -0
  28. package/logging/getLogViewIamPolicy.js.map +1 -1
  29. package/logging/logViewIamBinding.d.ts +276 -0
  30. package/logging/logViewIamBinding.js +276 -0
  31. package/logging/logViewIamBinding.js.map +1 -1
  32. package/logging/logViewIamMember.d.ts +276 -0
  33. package/logging/logViewIamMember.js +276 -0
  34. package/logging/logViewIamMember.js.map +1 -1
  35. package/logging/logViewIamPolicy.d.ts +276 -0
  36. package/logging/logViewIamPolicy.js +276 -0
  37. package/logging/logViewIamPolicy.js.map +1 -1
  38. package/networkconnectivity/regionalEndpoint.d.ts +3 -3
  39. package/networkconnectivity/regionalEndpoint.js +3 -3
  40. package/organizations/getProject.d.ts +1 -0
  41. package/organizations/getProject.js.map +1 -1
  42. package/organizations/project.d.ts +21 -9
  43. package/organizations/project.js +2 -0
  44. package/organizations/project.js.map +1 -1
  45. package/package.json +2 -2
  46. package/securitycenter/getV2OrganizationSourceIamPolicy.d.ts +71 -0
  47. package/securitycenter/getV2OrganizationSourceIamPolicy.js +48 -0
  48. package/securitycenter/getV2OrganizationSourceIamPolicy.js.map +1 -0
  49. package/securitycenter/index.d.ts +24 -0
  50. package/securitycenter/index.js +39 -1
  51. package/securitycenter/index.js.map +1 -1
  52. package/securitycenter/v2folderMuteConfig.d.ts +230 -0
  53. package/securitycenter/v2folderMuteConfig.js +129 -0
  54. package/securitycenter/v2folderMuteConfig.js.map +1 -0
  55. package/securitycenter/v2organizationSource.d.ts +151 -0
  56. package/securitycenter/v2organizationSource.js +106 -0
  57. package/securitycenter/v2organizationSource.js.map +1 -0
  58. package/securitycenter/v2organizationSourceIamBinding.d.ts +283 -0
  59. package/securitycenter/v2organizationSourceIamBinding.js +230 -0
  60. package/securitycenter/v2organizationSourceIamBinding.js.map +1 -0
  61. package/securitycenter/v2organizationSourceIamMember.d.ts +283 -0
  62. package/securitycenter/v2organizationSourceIamMember.js +230 -0
  63. package/securitycenter/v2organizationSourceIamMember.js.map +1 -0
  64. package/securitycenter/v2organizationSourceIamPolicy.d.ts +233 -0
  65. package/securitycenter/v2organizationSourceIamPolicy.js +223 -0
  66. package/securitycenter/v2organizationSourceIamPolicy.js.map +1 -0
  67. package/securitycenter/v2projectMuteConfig.d.ts +232 -0
  68. package/securitycenter/v2projectMuteConfig.js +128 -0
  69. package/securitycenter/v2projectMuteConfig.js.map +1 -0
  70. package/securitycenter/v2projectNotificationConfig.d.ts +184 -0
  71. package/securitycenter/v2projectNotificationConfig.js +129 -0
  72. package/securitycenter/v2projectNotificationConfig.js.map +1 -0
  73. package/spanner/instance.d.ts +0 -3
  74. package/spanner/instance.js.map +1 -1
  75. package/storage/bucketObject.d.ts +8 -0
  76. package/storage/bucketObject.js +2 -0
  77. package/storage/bucketObject.js.map +1 -1
  78. package/storage/getBucketObject.d.ts +4 -0
  79. package/storage/getBucketObject.js.map +1 -1
  80. package/storage/getBucketObjectContent.d.ts +1 -0
  81. package/storage/getBucketObjectContent.js.map +1 -1
  82. package/storage/managedFolder.d.ts +22 -0
  83. package/storage/managedFolder.js +3 -0
  84. package/storage/managedFolder.js.map +1 -1
  85. package/types/input.d.ts +242 -3
  86. package/types/output.d.ts +256 -5
  87. package/vmwareengine/networkPolicy.d.ts +3 -3
  88. package/vmwareengine/networkPolicy.js +3 -3
@@ -0,0 +1,129 @@
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.V2FolderMuteConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Mute Findings is a volume management feature in Security Command Center
10
+ * that lets you manually or programmatically hide irrelevant findings,
11
+ * and create filters to automatically silence existing and future
12
+ * findings based on criteria you specify.
13
+ *
14
+ * To get more information about FolderMuteConfig, see:
15
+ *
16
+ * * [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v2/folders.muteConfigs)
17
+ *
18
+ * ## Example Usage
19
+ *
20
+ * ### Scc V2 Folder Mute Config Basic
21
+ *
22
+ * ```typescript
23
+ * import * as pulumi from "@pulumi/pulumi";
24
+ * import * as gcp from "@pulumi/gcp";
25
+ *
26
+ * const folder = new gcp.organizations.Folder("folder", {
27
+ * parent: "organizations/123456789",
28
+ * displayName: "folder-name",
29
+ * });
30
+ * const _default = new gcp.securitycenter.V2FolderMuteConfig("default", {
31
+ * muteConfigId: "my-config",
32
+ * folder: folder.folderId,
33
+ * location: "global",
34
+ * description: "My custom Cloud Security Command Center Finding Folder mute Configuration",
35
+ * filter: "severity = \"HIGH\"",
36
+ * type: "STATIC",
37
+ * });
38
+ * ```
39
+ *
40
+ * ## Import
41
+ *
42
+ * FolderMuteConfig can be imported using any of these accepted formats:
43
+ *
44
+ * * `folders/{{folder}}/locations/{{location}}/muteConfigs/{{mute_config_id}}`
45
+ *
46
+ * * `{{folder}}/{{location}}/{{mute_config_id}}`
47
+ *
48
+ * When using the `pulumi import` command, FolderMuteConfig can be imported using one of the formats above. For example:
49
+ *
50
+ * ```sh
51
+ * $ pulumi import gcp:securitycenter/v2FolderMuteConfig:V2FolderMuteConfig default folders/{{folder}}/locations/{{location}}/muteConfigs/{{mute_config_id}}
52
+ * ```
53
+ *
54
+ * ```sh
55
+ * $ pulumi import gcp:securitycenter/v2FolderMuteConfig:V2FolderMuteConfig default {{folder}}/{{location}}/{{mute_config_id}}
56
+ * ```
57
+ */
58
+ class V2FolderMuteConfig extends pulumi.CustomResource {
59
+ /**
60
+ * Get an existing V2FolderMuteConfig resource's state with the given name, ID, and optional extra
61
+ * properties used to qualify the lookup.
62
+ *
63
+ * @param name The _unique_ name of the resulting resource.
64
+ * @param id The _unique_ provider ID of the resource to lookup.
65
+ * @param state Any extra arguments used during the lookup.
66
+ * @param opts Optional settings to control the behavior of the CustomResource.
67
+ */
68
+ static get(name, id, state, opts) {
69
+ return new V2FolderMuteConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
70
+ }
71
+ /**
72
+ * Returns true if the given object is an instance of V2FolderMuteConfig. This is designed to work even
73
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
74
+ */
75
+ static isInstance(obj) {
76
+ if (obj === undefined || obj === null) {
77
+ return false;
78
+ }
79
+ return obj['__pulumiType'] === V2FolderMuteConfig.__pulumiType;
80
+ }
81
+ constructor(name, argsOrState, opts) {
82
+ let resourceInputs = {};
83
+ opts = opts || {};
84
+ if (opts.id) {
85
+ const state = argsOrState;
86
+ resourceInputs["createTime"] = state ? state.createTime : undefined;
87
+ resourceInputs["description"] = state ? state.description : undefined;
88
+ resourceInputs["filter"] = state ? state.filter : undefined;
89
+ resourceInputs["folder"] = state ? state.folder : undefined;
90
+ resourceInputs["location"] = state ? state.location : undefined;
91
+ resourceInputs["mostRecentEditor"] = state ? state.mostRecentEditor : undefined;
92
+ resourceInputs["muteConfigId"] = state ? state.muteConfigId : undefined;
93
+ resourceInputs["name"] = state ? state.name : undefined;
94
+ resourceInputs["type"] = state ? state.type : undefined;
95
+ resourceInputs["updateTime"] = state ? state.updateTime : undefined;
96
+ }
97
+ else {
98
+ const args = argsOrState;
99
+ if ((!args || args.filter === undefined) && !opts.urn) {
100
+ throw new Error("Missing required property 'filter'");
101
+ }
102
+ if ((!args || args.folder === undefined) && !opts.urn) {
103
+ throw new Error("Missing required property 'folder'");
104
+ }
105
+ if ((!args || args.muteConfigId === undefined) && !opts.urn) {
106
+ throw new Error("Missing required property 'muteConfigId'");
107
+ }
108
+ if ((!args || args.type === undefined) && !opts.urn) {
109
+ throw new Error("Missing required property 'type'");
110
+ }
111
+ resourceInputs["description"] = args ? args.description : undefined;
112
+ resourceInputs["filter"] = args ? args.filter : undefined;
113
+ resourceInputs["folder"] = args ? args.folder : undefined;
114
+ resourceInputs["location"] = args ? args.location : undefined;
115
+ resourceInputs["muteConfigId"] = args ? args.muteConfigId : undefined;
116
+ resourceInputs["type"] = args ? args.type : undefined;
117
+ resourceInputs["createTime"] = undefined /*out*/;
118
+ resourceInputs["mostRecentEditor"] = undefined /*out*/;
119
+ resourceInputs["name"] = undefined /*out*/;
120
+ resourceInputs["updateTime"] = undefined /*out*/;
121
+ }
122
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
123
+ super(V2FolderMuteConfig.__pulumiType, name, resourceInputs, opts);
124
+ }
125
+ }
126
+ exports.V2FolderMuteConfig = V2FolderMuteConfig;
127
+ /** @internal */
128
+ V2FolderMuteConfig.__pulumiType = 'gcp:securitycenter/v2FolderMuteConfig:V2FolderMuteConfig';
129
+ //# sourceMappingURL=v2folderMuteConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2folderMuteConfig.js","sourceRoot":"","sources":["../../securitycenter/v2folderMuteConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAmED,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,YAAY,CAAC,G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,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAvIL,gDAwIC;AA1HG,gBAAgB;AACO,+BAAY,GAAG,0DAA0D,CAAC"}
@@ -0,0 +1,151 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A Cloud Security Command Center's (Cloud SCC) finding source. A finding
4
+ * source is an entity or a mechanism that can produce a finding. A source is
5
+ * like a container of findings that come from the same scanner, logger,
6
+ * monitor, etc.
7
+ *
8
+ * To get more information about OrganizationSource, see:
9
+ *
10
+ * * [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v2/organizations.sources)
11
+ * * How-to Guides
12
+ * * [Official Documentation](https://cloud.google.com/security-command-center/docs)
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ### Scc Source Basic
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as gcp from "@pulumi/gcp";
21
+ *
22
+ * const customSource = new gcp.securitycenter.Source("custom_source", {
23
+ * displayName: "My Source",
24
+ * organization: "123456789",
25
+ * description: "My custom Cloud Security Command Center Finding Source",
26
+ * });
27
+ * ```
28
+ *
29
+ * ## Import
30
+ *
31
+ * OrganizationSource can be imported using any of these accepted formats:
32
+ *
33
+ * * `organizations/{{organization}}/sources/{{name}}`
34
+ *
35
+ * * `{{organization}}/{{name}}`
36
+ *
37
+ * When using the `pulumi import` command, OrganizationSource can be imported using one of the formats above. For example:
38
+ *
39
+ * ```sh
40
+ * $ pulumi import gcp:securitycenter/v2OrganizationSource:V2OrganizationSource default organizations/{{organization}}/sources/{{name}}
41
+ * ```
42
+ *
43
+ * ```sh
44
+ * $ pulumi import gcp:securitycenter/v2OrganizationSource:V2OrganizationSource default {{organization}}/{{name}}
45
+ * ```
46
+ */
47
+ export declare class V2OrganizationSource extends pulumi.CustomResource {
48
+ /**
49
+ * Get an existing V2OrganizationSource resource's state with the given name, ID, and optional extra
50
+ * properties used to qualify the lookup.
51
+ *
52
+ * @param name The _unique_ name of the resulting resource.
53
+ * @param id The _unique_ provider ID of the resource to lookup.
54
+ * @param state Any extra arguments used during the lookup.
55
+ * @param opts Optional settings to control the behavior of the CustomResource.
56
+ */
57
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: V2OrganizationSourceState, opts?: pulumi.CustomResourceOptions): V2OrganizationSource;
58
+ /**
59
+ * Returns true if the given object is an instance of V2OrganizationSource. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj: any): obj is V2OrganizationSource;
63
+ /**
64
+ * The description of the source (max of 1024 characters).
65
+ */
66
+ readonly description: pulumi.Output<string | undefined>;
67
+ /**
68
+ * The source’s display name. A source’s display name must be unique
69
+ * amongst its siblings, for example, two sources with the same parent
70
+ * can't share the same display name. The display name must start and end
71
+ * with a letter or digit, may contain letters, digits, spaces, hyphens,
72
+ * and underscores, and can be no longer than 32 characters.
73
+ */
74
+ readonly displayName: pulumi.Output<string>;
75
+ /**
76
+ * The resource name of this source, in the format
77
+ * `organizations/{{organization}}/sources/{{source}}`.
78
+ */
79
+ readonly name: pulumi.Output<string>;
80
+ /**
81
+ * The organization whose Cloud Security Command Center the Source
82
+ * lives in.
83
+ *
84
+ *
85
+ * - - -
86
+ */
87
+ readonly organization: pulumi.Output<string>;
88
+ /**
89
+ * Create a V2OrganizationSource resource with the given unique name, arguments, and options.
90
+ *
91
+ * @param name The _unique_ name of the resource.
92
+ * @param args The arguments to use to populate this resource's properties.
93
+ * @param opts A bag of options that control this resource's behavior.
94
+ */
95
+ constructor(name: string, args: V2OrganizationSourceArgs, opts?: pulumi.CustomResourceOptions);
96
+ }
97
+ /**
98
+ * Input properties used for looking up and filtering V2OrganizationSource resources.
99
+ */
100
+ export interface V2OrganizationSourceState {
101
+ /**
102
+ * The description of the source (max of 1024 characters).
103
+ */
104
+ description?: pulumi.Input<string>;
105
+ /**
106
+ * The source’s display name. A source’s display name must be unique
107
+ * amongst its siblings, for example, two sources with the same parent
108
+ * can't share the same display name. The display name must start and end
109
+ * with a letter or digit, may contain letters, digits, spaces, hyphens,
110
+ * and underscores, and can be no longer than 32 characters.
111
+ */
112
+ displayName?: pulumi.Input<string>;
113
+ /**
114
+ * The resource name of this source, in the format
115
+ * `organizations/{{organization}}/sources/{{source}}`.
116
+ */
117
+ name?: pulumi.Input<string>;
118
+ /**
119
+ * The organization whose Cloud Security Command Center the Source
120
+ * lives in.
121
+ *
122
+ *
123
+ * - - -
124
+ */
125
+ organization?: pulumi.Input<string>;
126
+ }
127
+ /**
128
+ * The set of arguments for constructing a V2OrganizationSource resource.
129
+ */
130
+ export interface V2OrganizationSourceArgs {
131
+ /**
132
+ * The description of the source (max of 1024 characters).
133
+ */
134
+ description?: pulumi.Input<string>;
135
+ /**
136
+ * The source’s display name. A source’s display name must be unique
137
+ * amongst its siblings, for example, two sources with the same parent
138
+ * can't share the same display name. The display name must start and end
139
+ * with a letter or digit, may contain letters, digits, spaces, hyphens,
140
+ * and underscores, and can be no longer than 32 characters.
141
+ */
142
+ displayName: pulumi.Input<string>;
143
+ /**
144
+ * The organization whose Cloud Security Command Center the Source
145
+ * lives in.
146
+ *
147
+ *
148
+ * - - -
149
+ */
150
+ organization: pulumi.Input<string>;
151
+ }
@@ -0,0 +1,106 @@
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.V2OrganizationSource = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * A Cloud Security Command Center's (Cloud SCC) finding source. A finding
10
+ * source is an entity or a mechanism that can produce a finding. A source is
11
+ * like a container of findings that come from the same scanner, logger,
12
+ * monitor, etc.
13
+ *
14
+ * To get more information about OrganizationSource, see:
15
+ *
16
+ * * [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v2/organizations.sources)
17
+ * * How-to Guides
18
+ * * [Official Documentation](https://cloud.google.com/security-command-center/docs)
19
+ *
20
+ * ## Example Usage
21
+ *
22
+ * ### Scc Source Basic
23
+ *
24
+ * ```typescript
25
+ * import * as pulumi from "@pulumi/pulumi";
26
+ * import * as gcp from "@pulumi/gcp";
27
+ *
28
+ * const customSource = new gcp.securitycenter.Source("custom_source", {
29
+ * displayName: "My Source",
30
+ * organization: "123456789",
31
+ * description: "My custom Cloud Security Command Center Finding Source",
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * OrganizationSource can be imported using any of these accepted formats:
38
+ *
39
+ * * `organizations/{{organization}}/sources/{{name}}`
40
+ *
41
+ * * `{{organization}}/{{name}}`
42
+ *
43
+ * When using the `pulumi import` command, OrganizationSource can be imported using one of the formats above. For example:
44
+ *
45
+ * ```sh
46
+ * $ pulumi import gcp:securitycenter/v2OrganizationSource:V2OrganizationSource default organizations/{{organization}}/sources/{{name}}
47
+ * ```
48
+ *
49
+ * ```sh
50
+ * $ pulumi import gcp:securitycenter/v2OrganizationSource:V2OrganizationSource default {{organization}}/{{name}}
51
+ * ```
52
+ */
53
+ class V2OrganizationSource extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing V2OrganizationSource resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name, id, state, opts) {
64
+ return new V2OrganizationSource(name, state, Object.assign(Object.assign({}, opts), { id: id }));
65
+ }
66
+ /**
67
+ * Returns true if the given object is an instance of V2OrganizationSource. This is designed to work even
68
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
69
+ */
70
+ static isInstance(obj) {
71
+ if (obj === undefined || obj === null) {
72
+ return false;
73
+ }
74
+ return obj['__pulumiType'] === V2OrganizationSource.__pulumiType;
75
+ }
76
+ constructor(name, argsOrState, opts) {
77
+ let resourceInputs = {};
78
+ opts = opts || {};
79
+ if (opts.id) {
80
+ const state = argsOrState;
81
+ resourceInputs["description"] = state ? state.description : undefined;
82
+ resourceInputs["displayName"] = state ? state.displayName : undefined;
83
+ resourceInputs["name"] = state ? state.name : undefined;
84
+ resourceInputs["organization"] = state ? state.organization : undefined;
85
+ }
86
+ else {
87
+ const args = argsOrState;
88
+ if ((!args || args.displayName === undefined) && !opts.urn) {
89
+ throw new Error("Missing required property 'displayName'");
90
+ }
91
+ if ((!args || args.organization === undefined) && !opts.urn) {
92
+ throw new Error("Missing required property 'organization'");
93
+ }
94
+ resourceInputs["description"] = args ? args.description : undefined;
95
+ resourceInputs["displayName"] = args ? args.displayName : undefined;
96
+ resourceInputs["organization"] = args ? args.organization : undefined;
97
+ resourceInputs["name"] = undefined /*out*/;
98
+ }
99
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
100
+ super(V2OrganizationSource.__pulumiType, name, resourceInputs, opts);
101
+ }
102
+ }
103
+ exports.V2OrganizationSource = V2OrganizationSource;
104
+ /** @internal */
105
+ V2OrganizationSource.__pulumiType = 'gcp:securitycenter/v2OrganizationSource:V2OrganizationSource';
106
+ //# sourceMappingURL=v2organizationSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2organizationSource.js","sourceRoot":"","sources":["../../securitycen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