generated from pulumi/pulumi-tf-provider-boilerplate
/
getMaskingPoliciesMaskingColumn.go
232 lines (200 loc) · 11.6 KB
/
getMaskingPoliciesMaskingColumn.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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package datasafe
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides details about a specific Masking Policies Masking Column resource in Oracle Cloud Infrastructure Data Safe service.
//
// Gets the details of the specified masking column.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := DataSafe.GetMaskingPoliciesMaskingColumn(ctx, &datasafe.GetMaskingPoliciesMaskingColumnArgs{
// MaskingColumnKey: maskingPoliciesMaskingColumnMaskingColumnKey,
// MaskingPolicyId: testMaskingPolicy.Id,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func LookupMaskingPoliciesMaskingColumn(ctx *pulumi.Context, args *LookupMaskingPoliciesMaskingColumnArgs, opts ...pulumi.InvokeOption) (*LookupMaskingPoliciesMaskingColumnResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupMaskingPoliciesMaskingColumnResult
err := ctx.Invoke("oci:DataSafe/getMaskingPoliciesMaskingColumn:getMaskingPoliciesMaskingColumn", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getMaskingPoliciesMaskingColumn.
type LookupMaskingPoliciesMaskingColumnArgs struct {
// The unique key that identifies the masking column. It's numeric and unique within a masking policy.
MaskingColumnKey string `pulumi:"maskingColumnKey"`
// The OCID of the masking policy.
MaskingPolicyId string `pulumi:"maskingPolicyId"`
}
// A collection of values returned by getMaskingPoliciesMaskingColumn.
type LookupMaskingPoliciesMaskingColumnResult struct {
// An array of child columns that are in referential relationship with the masking column.
ChildColumns []string `pulumi:"childColumns"`
// The name of the substitution column.
ColumnName string `pulumi:"columnName"`
// The data type of the masking column.
DataType string `pulumi:"dataType"`
Id string `pulumi:"id"`
// Indicates whether data masking is enabled for the masking column.
IsMaskingEnabled bool `pulumi:"isMaskingEnabled"`
// The unique key that identifies the masking column. It's numeric and unique within a masking policy.
Key string `pulumi:"key"`
// Details about the current state of the masking column.
LifecycleDetails string `pulumi:"lifecycleDetails"`
// The group of the masking column. All the columns in a group are masked together to ensure that the masked data across these columns continue to retain the same logical relationship. For more details, check <a href=https://docs.oracle.com/en/cloud/paas/data-safe/udscs/group-masking1.html#GUID-755056B9-9540-48C0-9491-262A44A85037>Group Masking in the Data Safe documentation.</a>
MaskingColumnGroup string `pulumi:"maskingColumnGroup"`
MaskingColumnKey string `pulumi:"maskingColumnKey"`
// An array of masking formats assigned to the masking column.
MaskingFormats []GetMaskingPoliciesMaskingColumnMaskingFormat `pulumi:"maskingFormats"`
// The OCID of the masking policy that contains the masking column.
MaskingPolicyId string `pulumi:"maskingPolicyId"`
// The name of the object (table or editioning view) that contains the database column.
Object string `pulumi:"object"`
// The type of the object that contains the database column.
ObjectType string `pulumi:"objectType"`
// The name of the schema that contains the database column.
SchemaName string `pulumi:"schemaName"`
// The OCID of the sensitive type associated with the masking column.
SensitiveTypeId string `pulumi:"sensitiveTypeId"`
// The current state of the masking column.
State string `pulumi:"state"`
// The date and time the masking column was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
TimeCreated string `pulumi:"timeCreated"`
// The date and time the masking column was last updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
TimeUpdated string `pulumi:"timeUpdated"`
}
func LookupMaskingPoliciesMaskingColumnOutput(ctx *pulumi.Context, args LookupMaskingPoliciesMaskingColumnOutputArgs, opts ...pulumi.InvokeOption) LookupMaskingPoliciesMaskingColumnResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupMaskingPoliciesMaskingColumnResult, error) {
args := v.(LookupMaskingPoliciesMaskingColumnArgs)
r, err := LookupMaskingPoliciesMaskingColumn(ctx, &args, opts...)
var s LookupMaskingPoliciesMaskingColumnResult
if r != nil {
s = *r
}
return s, err
}).(LookupMaskingPoliciesMaskingColumnResultOutput)
}
// A collection of arguments for invoking getMaskingPoliciesMaskingColumn.
type LookupMaskingPoliciesMaskingColumnOutputArgs struct {
// The unique key that identifies the masking column. It's numeric and unique within a masking policy.
MaskingColumnKey pulumi.StringInput `pulumi:"maskingColumnKey"`
// The OCID of the masking policy.
MaskingPolicyId pulumi.StringInput `pulumi:"maskingPolicyId"`
}
func (LookupMaskingPoliciesMaskingColumnOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupMaskingPoliciesMaskingColumnArgs)(nil)).Elem()
}
// A collection of values returned by getMaskingPoliciesMaskingColumn.
type LookupMaskingPoliciesMaskingColumnResultOutput struct{ *pulumi.OutputState }
func (LookupMaskingPoliciesMaskingColumnResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupMaskingPoliciesMaskingColumnResult)(nil)).Elem()
}
func (o LookupMaskingPoliciesMaskingColumnResultOutput) ToLookupMaskingPoliciesMaskingColumnResultOutput() LookupMaskingPoliciesMaskingColumnResultOutput {
return o
}
func (o LookupMaskingPoliciesMaskingColumnResultOutput) ToLookupMaskingPoliciesMaskingColumnResultOutputWithContext(ctx context.Context) LookupMaskingPoliciesMaskingColumnResultOutput {
return o
}
// An array of child columns that are in referential relationship with the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) ChildColumns() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) []string { return v.ChildColumns }).(pulumi.StringArrayOutput)
}
// The name of the substitution column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) ColumnName() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.ColumnName }).(pulumi.StringOutput)
}
// The data type of the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) DataType() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.DataType }).(pulumi.StringOutput)
}
func (o LookupMaskingPoliciesMaskingColumnResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.Id }).(pulumi.StringOutput)
}
// Indicates whether data masking is enabled for the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) IsMaskingEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) bool { return v.IsMaskingEnabled }).(pulumi.BoolOutput)
}
// The unique key that identifies the masking column. It's numeric and unique within a masking policy.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.Key }).(pulumi.StringOutput)
}
// Details about the current state of the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) LifecycleDetails() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.LifecycleDetails }).(pulumi.StringOutput)
}
// The group of the masking column. All the columns in a group are masked together to ensure that the masked data across these columns continue to retain the same logical relationship. For more details, check <a href=https://docs.oracle.com/en/cloud/paas/data-safe/udscs/group-masking1.html#GUID-755056B9-9540-48C0-9491-262A44A85037>Group Masking in the Data Safe documentation.</a>
func (o LookupMaskingPoliciesMaskingColumnResultOutput) MaskingColumnGroup() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.MaskingColumnGroup }).(pulumi.StringOutput)
}
func (o LookupMaskingPoliciesMaskingColumnResultOutput) MaskingColumnKey() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.MaskingColumnKey }).(pulumi.StringOutput)
}
// An array of masking formats assigned to the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) MaskingFormats() GetMaskingPoliciesMaskingColumnMaskingFormatArrayOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) []GetMaskingPoliciesMaskingColumnMaskingFormat {
return v.MaskingFormats
}).(GetMaskingPoliciesMaskingColumnMaskingFormatArrayOutput)
}
// The OCID of the masking policy that contains the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) MaskingPolicyId() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.MaskingPolicyId }).(pulumi.StringOutput)
}
// The name of the object (table or editioning view) that contains the database column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) Object() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.Object }).(pulumi.StringOutput)
}
// The type of the object that contains the database column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) ObjectType() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.ObjectType }).(pulumi.StringOutput)
}
// The name of the schema that contains the database column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) SchemaName() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.SchemaName }).(pulumi.StringOutput)
}
// The OCID of the sensitive type associated with the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) SensitiveTypeId() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.SensitiveTypeId }).(pulumi.StringOutput)
}
// The current state of the masking column.
func (o LookupMaskingPoliciesMaskingColumnResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.State }).(pulumi.StringOutput)
}
// The date and time the masking column was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
func (o LookupMaskingPoliciesMaskingColumnResultOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.TimeCreated }).(pulumi.StringOutput)
}
// The date and time the masking column was last updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
func (o LookupMaskingPoliciesMaskingColumnResultOutput) TimeUpdated() pulumi.StringOutput {
return o.ApplyT(func(v LookupMaskingPoliciesMaskingColumnResult) string { return v.TimeUpdated }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupMaskingPoliciesMaskingColumnResultOutput{})
}