This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
sqlPoolSensitivityLabel.go
251 lines (227 loc) · 8.98 KB
/
sqlPoolSensitivityLabel.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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190601preview
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// A sensitivity label.
type SqlPoolSensitivityLabel struct {
pulumi.CustomResourceState
// The column name.
ColumnName pulumi.StringOutput `pulumi:"columnName"`
// The information type.
InformationType pulumi.StringPtrOutput `pulumi:"informationType"`
// The information type ID.
InformationTypeId pulumi.StringPtrOutput `pulumi:"informationTypeId"`
// Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
IsDisabled pulumi.BoolOutput `pulumi:"isDisabled"`
// The label ID.
LabelId pulumi.StringPtrOutput `pulumi:"labelId"`
// The label name.
LabelName pulumi.StringPtrOutput `pulumi:"labelName"`
// managed by
ManagedBy pulumi.StringOutput `pulumi:"managedBy"`
// The name of the resource
Name pulumi.StringOutput `pulumi:"name"`
Rank pulumi.StringPtrOutput `pulumi:"rank"`
// The schema name.
SchemaName pulumi.StringOutput `pulumi:"schemaName"`
// The table name.
TableName pulumi.StringOutput `pulumi:"tableName"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type pulumi.StringOutput `pulumi:"type"`
}
// NewSqlPoolSensitivityLabel registers a new resource with the given unique name, arguments, and options.
func NewSqlPoolSensitivityLabel(ctx *pulumi.Context,
name string, args *SqlPoolSensitivityLabelArgs, opts ...pulumi.ResourceOption) (*SqlPoolSensitivityLabel, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ColumnName == nil {
return nil, errors.New("invalid value for required argument 'ColumnName'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.SchemaName == nil {
return nil, errors.New("invalid value for required argument 'SchemaName'")
}
if args.SensitivityLabelSource == nil {
return nil, errors.New("invalid value for required argument 'SensitivityLabelSource'")
}
if args.SqlPoolName == nil {
return nil, errors.New("invalid value for required argument 'SqlPoolName'")
}
if args.TableName == nil {
return nil, errors.New("invalid value for required argument 'TableName'")
}
if args.WorkspaceName == nil {
return nil, errors.New("invalid value for required argument 'WorkspaceName'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:synapse/latest:SqlPoolSensitivityLabel"),
},
{
Type: pulumi.String("azure-nextgen:synapse/v20201201:SqlPoolSensitivityLabel"),
},
})
opts = append(opts, aliases)
var resource SqlPoolSensitivityLabel
err := ctx.RegisterResource("azure-nextgen:synapse/v20190601preview:SqlPoolSensitivityLabel", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSqlPoolSensitivityLabel gets an existing SqlPoolSensitivityLabel 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 GetSqlPoolSensitivityLabel(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SqlPoolSensitivityLabelState, opts ...pulumi.ResourceOption) (*SqlPoolSensitivityLabel, error) {
var resource SqlPoolSensitivityLabel
err := ctx.ReadResource("azure-nextgen:synapse/v20190601preview:SqlPoolSensitivityLabel", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering SqlPoolSensitivityLabel resources.
type sqlPoolSensitivityLabelState struct {
// The column name.
ColumnName *string `pulumi:"columnName"`
// The information type.
InformationType *string `pulumi:"informationType"`
// The information type ID.
InformationTypeId *string `pulumi:"informationTypeId"`
// Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
IsDisabled *bool `pulumi:"isDisabled"`
// The label ID.
LabelId *string `pulumi:"labelId"`
// The label name.
LabelName *string `pulumi:"labelName"`
// managed by
ManagedBy *string `pulumi:"managedBy"`
// The name of the resource
Name *string `pulumi:"name"`
Rank *string `pulumi:"rank"`
// The schema name.
SchemaName *string `pulumi:"schemaName"`
// The table name.
TableName *string `pulumi:"tableName"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `pulumi:"type"`
}
type SqlPoolSensitivityLabelState struct {
// The column name.
ColumnName pulumi.StringPtrInput
// The information type.
InformationType pulumi.StringPtrInput
// The information type ID.
InformationTypeId pulumi.StringPtrInput
// Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
IsDisabled pulumi.BoolPtrInput
// The label ID.
LabelId pulumi.StringPtrInput
// The label name.
LabelName pulumi.StringPtrInput
// managed by
ManagedBy pulumi.StringPtrInput
// The name of the resource
Name pulumi.StringPtrInput
Rank pulumi.StringPtrInput
// The schema name.
SchemaName pulumi.StringPtrInput
// The table name.
TableName pulumi.StringPtrInput
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type pulumi.StringPtrInput
}
func (SqlPoolSensitivityLabelState) ElementType() reflect.Type {
return reflect.TypeOf((*sqlPoolSensitivityLabelState)(nil)).Elem()
}
type sqlPoolSensitivityLabelArgs struct {
// The name of the column.
ColumnName string `pulumi:"columnName"`
// The information type.
InformationType *string `pulumi:"informationType"`
// The information type ID.
InformationTypeId *string `pulumi:"informationTypeId"`
// The label ID.
LabelId *string `pulumi:"labelId"`
// The label name.
LabelName *string `pulumi:"labelName"`
Rank *string `pulumi:"rank"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the schema.
SchemaName string `pulumi:"schemaName"`
// The source of the sensitivity label.
SensitivityLabelSource string `pulumi:"sensitivityLabelSource"`
// SQL pool name
SqlPoolName string `pulumi:"sqlPoolName"`
// The name of the table.
TableName string `pulumi:"tableName"`
// The name of the workspace
WorkspaceName string `pulumi:"workspaceName"`
}
// The set of arguments for constructing a SqlPoolSensitivityLabel resource.
type SqlPoolSensitivityLabelArgs struct {
// The name of the column.
ColumnName pulumi.StringInput
// The information type.
InformationType pulumi.StringPtrInput
// The information type ID.
InformationTypeId pulumi.StringPtrInput
// The label ID.
LabelId pulumi.StringPtrInput
// The label name.
LabelName pulumi.StringPtrInput
Rank *SensitivityLabelRank
// The name of the resource group. The name is case insensitive.
ResourceGroupName pulumi.StringInput
// The name of the schema.
SchemaName pulumi.StringInput
// The source of the sensitivity label.
SensitivityLabelSource pulumi.StringInput
// SQL pool name
SqlPoolName pulumi.StringInput
// The name of the table.
TableName pulumi.StringInput
// The name of the workspace
WorkspaceName pulumi.StringInput
}
func (SqlPoolSensitivityLabelArgs) ElementType() reflect.Type {
return reflect.TypeOf((*sqlPoolSensitivityLabelArgs)(nil)).Elem()
}
type SqlPoolSensitivityLabelInput interface {
pulumi.Input
ToSqlPoolSensitivityLabelOutput() SqlPoolSensitivityLabelOutput
ToSqlPoolSensitivityLabelOutputWithContext(ctx context.Context) SqlPoolSensitivityLabelOutput
}
func (*SqlPoolSensitivityLabel) ElementType() reflect.Type {
return reflect.TypeOf((*SqlPoolSensitivityLabel)(nil))
}
func (i *SqlPoolSensitivityLabel) ToSqlPoolSensitivityLabelOutput() SqlPoolSensitivityLabelOutput {
return i.ToSqlPoolSensitivityLabelOutputWithContext(context.Background())
}
func (i *SqlPoolSensitivityLabel) ToSqlPoolSensitivityLabelOutputWithContext(ctx context.Context) SqlPoolSensitivityLabelOutput {
return pulumi.ToOutputWithContext(ctx, i).(SqlPoolSensitivityLabelOutput)
}
type SqlPoolSensitivityLabelOutput struct {
*pulumi.OutputState
}
func (SqlPoolSensitivityLabelOutput) ElementType() reflect.Type {
return reflect.TypeOf((*SqlPoolSensitivityLabel)(nil))
}
func (o SqlPoolSensitivityLabelOutput) ToSqlPoolSensitivityLabelOutput() SqlPoolSensitivityLabelOutput {
return o
}
func (o SqlPoolSensitivityLabelOutput) ToSqlPoolSensitivityLabelOutputWithContext(ctx context.Context) SqlPoolSensitivityLabelOutput {
return o
}
func init() {
pulumi.RegisterOutputType(SqlPoolSensitivityLabelOutput{})
}