generated from pulumi/pulumi-tf-provider-boilerplate
/
getMaskingReport.go
241 lines (207 loc) · 10.4 KB
/
getMaskingReport.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
// 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 Report resource in Oracle Cloud Infrastructure Data Safe service.
//
// Gets the details of the specified masking report.
//
// ## 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.GetMaskingReport(ctx, &datasafe.GetMaskingReportArgs{
// MaskingReportId: testMaskingReportOciDataSafeMaskingReport.Id,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetMaskingReport(ctx *pulumi.Context, args *GetMaskingReportArgs, opts ...pulumi.InvokeOption) (*GetMaskingReportResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetMaskingReportResult
err := ctx.Invoke("oci:DataSafe/getMaskingReport:getMaskingReport", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getMaskingReport.
type GetMaskingReportArgs struct {
// The OCID of the masking report.
MaskingReportId string `pulumi:"maskingReportId"`
}
// A collection of values returned by getMaskingReport.
type GetMaskingReportResult struct {
// The OCID of the compartment that contains the masking report.
CompartmentId string `pulumi:"compartmentId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Indicates if the temporary tables created during the masking operation were dropped after masking.
IsDropTempTablesEnabled bool `pulumi:"isDropTempTablesEnabled"`
// Indicates if redo logging was enabled during the masking operation.
IsRedoLoggingEnabled bool `pulumi:"isRedoLoggingEnabled"`
// Indicates if statistics gathering was enabled during the masking operation.
IsRefreshStatsEnabled bool `pulumi:"isRefreshStatsEnabled"`
// The OCID of the masking policy used.
MaskingPolicyId string `pulumi:"maskingPolicyId"`
MaskingReportId string `pulumi:"maskingReportId"`
// The OCID of the masking work request that resulted in this masking report.
MaskingWorkRequestId string `pulumi:"maskingWorkRequestId"`
// Indicates if parallel execution was enabled during the masking operation.
ParallelDegree string `pulumi:"parallelDegree"`
// Indicates how invalid objects were recompiled post the masking operation.
Recompile string `pulumi:"recompile"`
// The current state of the masking report.
State string `pulumi:"state"`
// The OCID of the target database masked.
TargetId string `pulumi:"targetId"`
// The date and time the masking report was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
TimeCreated string `pulumi:"timeCreated"`
// The date and time data masking finished, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339)
TimeMaskingFinished string `pulumi:"timeMaskingFinished"`
// The date and time data masking started, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339)
TimeMaskingStarted string `pulumi:"timeMaskingStarted"`
// The total number of masked columns.
TotalMaskedColumns string `pulumi:"totalMaskedColumns"`
// The total number of unique objects (tables and editioning views) that contain the masked columns.
TotalMaskedObjects string `pulumi:"totalMaskedObjects"`
// The total number of unique schemas that contain the masked columns.
TotalMaskedSchemas string `pulumi:"totalMaskedSchemas"`
// The total number of unique sensitive types associated with the masked columns.
TotalMaskedSensitiveTypes string `pulumi:"totalMaskedSensitiveTypes"`
// The total number of masked values.
TotalMaskedValues string `pulumi:"totalMaskedValues"`
}
func GetMaskingReportOutput(ctx *pulumi.Context, args GetMaskingReportOutputArgs, opts ...pulumi.InvokeOption) GetMaskingReportResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetMaskingReportResult, error) {
args := v.(GetMaskingReportArgs)
r, err := GetMaskingReport(ctx, &args, opts...)
var s GetMaskingReportResult
if r != nil {
s = *r
}
return s, err
}).(GetMaskingReportResultOutput)
}
// A collection of arguments for invoking getMaskingReport.
type GetMaskingReportOutputArgs struct {
// The OCID of the masking report.
MaskingReportId pulumi.StringInput `pulumi:"maskingReportId"`
}
func (GetMaskingReportOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetMaskingReportArgs)(nil)).Elem()
}
// A collection of values returned by getMaskingReport.
type GetMaskingReportResultOutput struct{ *pulumi.OutputState }
func (GetMaskingReportResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetMaskingReportResult)(nil)).Elem()
}
func (o GetMaskingReportResultOutput) ToGetMaskingReportResultOutput() GetMaskingReportResultOutput {
return o
}
func (o GetMaskingReportResultOutput) ToGetMaskingReportResultOutputWithContext(ctx context.Context) GetMaskingReportResultOutput {
return o
}
// The OCID of the compartment that contains the masking report.
func (o GetMaskingReportResultOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.CompartmentId }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetMaskingReportResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.Id }).(pulumi.StringOutput)
}
// Indicates if the temporary tables created during the masking operation were dropped after masking.
func (o GetMaskingReportResultOutput) IsDropTempTablesEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v GetMaskingReportResult) bool { return v.IsDropTempTablesEnabled }).(pulumi.BoolOutput)
}
// Indicates if redo logging was enabled during the masking operation.
func (o GetMaskingReportResultOutput) IsRedoLoggingEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v GetMaskingReportResult) bool { return v.IsRedoLoggingEnabled }).(pulumi.BoolOutput)
}
// Indicates if statistics gathering was enabled during the masking operation.
func (o GetMaskingReportResultOutput) IsRefreshStatsEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v GetMaskingReportResult) bool { return v.IsRefreshStatsEnabled }).(pulumi.BoolOutput)
}
// The OCID of the masking policy used.
func (o GetMaskingReportResultOutput) MaskingPolicyId() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.MaskingPolicyId }).(pulumi.StringOutput)
}
func (o GetMaskingReportResultOutput) MaskingReportId() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.MaskingReportId }).(pulumi.StringOutput)
}
// The OCID of the masking work request that resulted in this masking report.
func (o GetMaskingReportResultOutput) MaskingWorkRequestId() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.MaskingWorkRequestId }).(pulumi.StringOutput)
}
// Indicates if parallel execution was enabled during the masking operation.
func (o GetMaskingReportResultOutput) ParallelDegree() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.ParallelDegree }).(pulumi.StringOutput)
}
// Indicates how invalid objects were recompiled post the masking operation.
func (o GetMaskingReportResultOutput) Recompile() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.Recompile }).(pulumi.StringOutput)
}
// The current state of the masking report.
func (o GetMaskingReportResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.State }).(pulumi.StringOutput)
}
// The OCID of the target database masked.
func (o GetMaskingReportResultOutput) TargetId() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TargetId }).(pulumi.StringOutput)
}
// The date and time the masking report was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
func (o GetMaskingReportResultOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TimeCreated }).(pulumi.StringOutput)
}
// The date and time data masking finished, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339)
func (o GetMaskingReportResultOutput) TimeMaskingFinished() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TimeMaskingFinished }).(pulumi.StringOutput)
}
// The date and time data masking started, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339)
func (o GetMaskingReportResultOutput) TimeMaskingStarted() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TimeMaskingStarted }).(pulumi.StringOutput)
}
// The total number of masked columns.
func (o GetMaskingReportResultOutput) TotalMaskedColumns() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TotalMaskedColumns }).(pulumi.StringOutput)
}
// The total number of unique objects (tables and editioning views) that contain the masked columns.
func (o GetMaskingReportResultOutput) TotalMaskedObjects() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TotalMaskedObjects }).(pulumi.StringOutput)
}
// The total number of unique schemas that contain the masked columns.
func (o GetMaskingReportResultOutput) TotalMaskedSchemas() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TotalMaskedSchemas }).(pulumi.StringOutput)
}
// The total number of unique sensitive types associated with the masked columns.
func (o GetMaskingReportResultOutput) TotalMaskedSensitiveTypes() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TotalMaskedSensitiveTypes }).(pulumi.StringOutput)
}
// The total number of masked values.
func (o GetMaskingReportResultOutput) TotalMaskedValues() pulumi.StringOutput {
return o.ApplyT(func(v GetMaskingReportResult) string { return v.TotalMaskedValues }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(GetMaskingReportResultOutput{})
}