/
datasetHl7V2StoreIamPolicy.go
198 lines (166 loc) · 17.3 KB
/
datasetHl7V2StoreIamPolicy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1beta1
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
// Note - this resource's API doesn't support deletion. When deleted, the resource will persist
// on Google Cloud even though it will be deleted from Pulumi state.
type DatasetHl7V2StoreIamPolicy struct {
pulumi.CustomResourceState
// Specifies cloud audit logging configuration for this policy.
AuditConfigs AuditConfigResponseArrayOutput `pulumi:"auditConfigs"`
// Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
Bindings BindingResponseArrayOutput `pulumi:"bindings"`
DatasetId pulumi.StringOutput `pulumi:"datasetId"`
// `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Etag pulumi.StringOutput `pulumi:"etag"`
Hl7V2StoreId pulumi.StringOutput `pulumi:"hl7V2StoreId"`
Location pulumi.StringOutput `pulumi:"location"`
Project pulumi.StringOutput `pulumi:"project"`
// Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Version pulumi.IntOutput `pulumi:"version"`
}
// NewDatasetHl7V2StoreIamPolicy registers a new resource with the given unique name, arguments, and options.
func NewDatasetHl7V2StoreIamPolicy(ctx *pulumi.Context,
name string, args *DatasetHl7V2StoreIamPolicyArgs, opts ...pulumi.ResourceOption) (*DatasetHl7V2StoreIamPolicy, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DatasetId == nil {
return nil, errors.New("invalid value for required argument 'DatasetId'")
}
if args.Hl7V2StoreId == nil {
return nil, errors.New("invalid value for required argument 'Hl7V2StoreId'")
}
replaceOnChanges := pulumi.ReplaceOnChanges([]string{
"datasetId",
"hl7V2StoreId",
"location",
"project",
})
opts = append(opts, replaceOnChanges)
opts = internal.PkgResourceDefaultOpts(opts)
var resource DatasetHl7V2StoreIamPolicy
err := ctx.RegisterResource("google-native:healthcare/v1beta1:DatasetHl7V2StoreIamPolicy", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetDatasetHl7V2StoreIamPolicy gets an existing DatasetHl7V2StoreIamPolicy resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetDatasetHl7V2StoreIamPolicy(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *DatasetHl7V2StoreIamPolicyState, opts ...pulumi.ResourceOption) (*DatasetHl7V2StoreIamPolicy, error) {
var resource DatasetHl7V2StoreIamPolicy
err := ctx.ReadResource("google-native:healthcare/v1beta1:DatasetHl7V2StoreIamPolicy", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering DatasetHl7V2StoreIamPolicy resources.
type datasetHl7V2StoreIamPolicyState struct {
}
type DatasetHl7V2StoreIamPolicyState struct {
}
func (DatasetHl7V2StoreIamPolicyState) ElementType() reflect.Type {
return reflect.TypeOf((*datasetHl7V2StoreIamPolicyState)(nil)).Elem()
}
type datasetHl7V2StoreIamPolicyArgs struct {
// Specifies cloud audit logging configuration for this policy.
AuditConfigs []AuditConfig `pulumi:"auditConfigs"`
// Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
Bindings []Binding `pulumi:"bindings"`
DatasetId string `pulumi:"datasetId"`
// `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Etag *string `pulumi:"etag"`
Hl7V2StoreId string `pulumi:"hl7V2StoreId"`
Location *string `pulumi:"location"`
Project *string `pulumi:"project"`
// OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
UpdateMask *string `pulumi:"updateMask"`
// Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Version *int `pulumi:"version"`
}
// The set of arguments for constructing a DatasetHl7V2StoreIamPolicy resource.
type DatasetHl7V2StoreIamPolicyArgs struct {
// Specifies cloud audit logging configuration for this policy.
AuditConfigs AuditConfigArrayInput
// Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
Bindings BindingArrayInput
DatasetId pulumi.StringInput
// `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Etag pulumi.StringPtrInput
Hl7V2StoreId pulumi.StringInput
Location pulumi.StringPtrInput
Project pulumi.StringPtrInput
// OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
UpdateMask pulumi.StringPtrInput
// Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Version pulumi.IntPtrInput
}
func (DatasetHl7V2StoreIamPolicyArgs) ElementType() reflect.Type {
return reflect.TypeOf((*datasetHl7V2StoreIamPolicyArgs)(nil)).Elem()
}
type DatasetHl7V2StoreIamPolicyInput interface {
pulumi.Input
ToDatasetHl7V2StoreIamPolicyOutput() DatasetHl7V2StoreIamPolicyOutput
ToDatasetHl7V2StoreIamPolicyOutputWithContext(ctx context.Context) DatasetHl7V2StoreIamPolicyOutput
}
func (*DatasetHl7V2StoreIamPolicy) ElementType() reflect.Type {
return reflect.TypeOf((**DatasetHl7V2StoreIamPolicy)(nil)).Elem()
}
func (i *DatasetHl7V2StoreIamPolicy) ToDatasetHl7V2StoreIamPolicyOutput() DatasetHl7V2StoreIamPolicyOutput {
return i.ToDatasetHl7V2StoreIamPolicyOutputWithContext(context.Background())
}
func (i *DatasetHl7V2StoreIamPolicy) ToDatasetHl7V2StoreIamPolicyOutputWithContext(ctx context.Context) DatasetHl7V2StoreIamPolicyOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatasetHl7V2StoreIamPolicyOutput)
}
type DatasetHl7V2StoreIamPolicyOutput struct{ *pulumi.OutputState }
func (DatasetHl7V2StoreIamPolicyOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DatasetHl7V2StoreIamPolicy)(nil)).Elem()
}
func (o DatasetHl7V2StoreIamPolicyOutput) ToDatasetHl7V2StoreIamPolicyOutput() DatasetHl7V2StoreIamPolicyOutput {
return o
}
func (o DatasetHl7V2StoreIamPolicyOutput) ToDatasetHl7V2StoreIamPolicyOutputWithContext(ctx context.Context) DatasetHl7V2StoreIamPolicyOutput {
return o
}
// Specifies cloud audit logging configuration for this policy.
func (o DatasetHl7V2StoreIamPolicyOutput) AuditConfigs() AuditConfigResponseArrayOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) AuditConfigResponseArrayOutput { return v.AuditConfigs }).(AuditConfigResponseArrayOutput)
}
// Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
func (o DatasetHl7V2StoreIamPolicyOutput) Bindings() BindingResponseArrayOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) BindingResponseArrayOutput { return v.Bindings }).(BindingResponseArrayOutput)
}
func (o DatasetHl7V2StoreIamPolicyOutput) DatasetId() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) pulumi.StringOutput { return v.DatasetId }).(pulumi.StringOutput)
}
// `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
func (o DatasetHl7V2StoreIamPolicyOutput) Etag() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) pulumi.StringOutput { return v.Etag }).(pulumi.StringOutput)
}
func (o DatasetHl7V2StoreIamPolicyOutput) Hl7V2StoreId() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) pulumi.StringOutput { return v.Hl7V2StoreId }).(pulumi.StringOutput)
}
func (o DatasetHl7V2StoreIamPolicyOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
func (o DatasetHl7V2StoreIamPolicyOutput) Project() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput)
}
// Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
func (o DatasetHl7V2StoreIamPolicyOutput) Version() pulumi.IntOutput {
return o.ApplyT(func(v *DatasetHl7V2StoreIamPolicy) pulumi.IntOutput { return v.Version }).(pulumi.IntOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*DatasetHl7V2StoreIamPolicyInput)(nil)).Elem(), &DatasetHl7V2StoreIamPolicy{})
pulumi.RegisterOutputType(DatasetHl7V2StoreIamPolicyOutput{})
}