generated from pulumi/pulumi-tf-provider-boilerplate
/
getSecurityAssessmentFindingsChangeAuditLogs.go
245 lines (218 loc) · 15 KB
/
getSecurityAssessmentFindingsChangeAuditLogs.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
// 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 the list of Security Assessment Findings Change Audit Logs in Oracle Cloud Infrastructure Data Safe service.
//
// List all changes made by user to risk level of findings of the specified assessment.
//
// ## 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.GetSecurityAssessmentFindingsChangeAuditLogs(ctx, &datasafe.GetSecurityAssessmentFindingsChangeAuditLogsArgs{
// SecurityAssessmentId: testSecurityAssessment.Id,
// FindingKey: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogFindingKey),
// FindingTitle: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogFindingTitle),
// IsRiskDeferred: pulumi.BoolRef(securityAssessmentFindingsChangeAuditLogIsRiskDeferred),
// ModifiedBy: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogModifiedBy),
// Severity: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogSeverity),
// TimeUpdatedGreaterThanOrEqualTo: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogTimeUpdatedGreaterThanOrEqualTo),
// TimeUpdatedLessThan: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogTimeUpdatedLessThan),
// TimeValidUntilGreaterThanOrEqualTo: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogTimeValidUntilGreaterThanOrEqualTo),
// TimeValidUntilLessThan: pulumi.StringRef(securityAssessmentFindingsChangeAuditLogTimeValidUntilLessThan),
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetSecurityAssessmentFindingsChangeAuditLogs(ctx *pulumi.Context, args *GetSecurityAssessmentFindingsChangeAuditLogsArgs, opts ...pulumi.InvokeOption) (*GetSecurityAssessmentFindingsChangeAuditLogsResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetSecurityAssessmentFindingsChangeAuditLogsResult
err := ctx.Invoke("oci:DataSafe/getSecurityAssessmentFindingsChangeAuditLogs:getSecurityAssessmentFindingsChangeAuditLogs", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getSecurityAssessmentFindingsChangeAuditLogs.
type GetSecurityAssessmentFindingsChangeAuditLogsArgs struct {
Filters []GetSecurityAssessmentFindingsChangeAuditLogsFilter `pulumi:"filters"`
// The unique key that identifies the finding. It is a string and unique within a security assessment.
FindingKey *string `pulumi:"findingKey"`
// The unique title that identifies the finding. It is a string and unique within a security assessment.
FindingTitle *string `pulumi:"findingTitle"`
// A filter to check findings whose risks were deferred by the user.
IsRiskDeferred *bool `pulumi:"isRiskDeferred"`
// A filter to check which user modified the risk level of the finding.
ModifiedBy *string `pulumi:"modifiedBy"`
// The OCID of the security assessment.
SecurityAssessmentId string `pulumi:"securityAssessmentId"`
// A filter to return only findings of a particular risk level.
Severity *string `pulumi:"severity"`
// Search for resources that were updated after a specific date. Specifying this parameter corresponding `timeUpdatedGreaterThanOrEqualTo` parameter will retrieve all resources updated after the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
TimeUpdatedGreaterThanOrEqualTo *string `pulumi:"timeUpdatedGreaterThanOrEqualTo"`
// Search for resources that were updated before a specific date. Specifying this parameter corresponding `timeUpdatedLessThan` parameter will retrieve all resources updated before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
TimeUpdatedLessThan *string `pulumi:"timeUpdatedLessThan"`
// Specifying `TimeValidUntilGreaterThanOrEqualToQueryParam` parameter will retrieve all items for which the risk level modification by user will no longer be valid greater than the date and time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
//
// **Example:** 2016-12-19T00:00:00.000Z
TimeValidUntilGreaterThanOrEqualTo *string `pulumi:"timeValidUntilGreaterThanOrEqualTo"`
// Specifying `TimeValidUntilLessThanQueryParam` parameter will retrieve all items for which the risk level modification by user will be valid until less than the date and time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
//
// **Example:** 2016-12-19T00:00:00.000Z
TimeValidUntilLessThan *string `pulumi:"timeValidUntilLessThan"`
}
// A collection of values returned by getSecurityAssessmentFindingsChangeAuditLogs.
type GetSecurityAssessmentFindingsChangeAuditLogsResult struct {
Filters []GetSecurityAssessmentFindingsChangeAuditLogsFilter `pulumi:"filters"`
// The unique key that identifies the finding.
FindingKey *string `pulumi:"findingKey"`
// The short title for the finding whose risk is being modified.
FindingTitle *string `pulumi:"findingTitle"`
// The list of findings_change_audit_log_collection.
FindingsChangeAuditLogCollections []GetSecurityAssessmentFindingsChangeAuditLogsFindingsChangeAuditLogCollection `pulumi:"findingsChangeAuditLogCollections"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Determines if the user has deferred the risk level of this finding when he is ok with it and does not plan to do anything about it.
IsRiskDeferred *bool `pulumi:"isRiskDeferred"`
// The user who initiated change of risk level of the finding
ModifiedBy *string `pulumi:"modifiedBy"`
SecurityAssessmentId string `pulumi:"securityAssessmentId"`
// The original severity / risk level of the finding as determined by security assessment.
Severity *string `pulumi:"severity"`
TimeUpdatedGreaterThanOrEqualTo *string `pulumi:"timeUpdatedGreaterThanOrEqualTo"`
TimeUpdatedLessThan *string `pulumi:"timeUpdatedLessThan"`
TimeValidUntilGreaterThanOrEqualTo *string `pulumi:"timeValidUntilGreaterThanOrEqualTo"`
TimeValidUntilLessThan *string `pulumi:"timeValidUntilLessThan"`
}
func GetSecurityAssessmentFindingsChangeAuditLogsOutput(ctx *pulumi.Context, args GetSecurityAssessmentFindingsChangeAuditLogsOutputArgs, opts ...pulumi.InvokeOption) GetSecurityAssessmentFindingsChangeAuditLogsResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetSecurityAssessmentFindingsChangeAuditLogsResult, error) {
args := v.(GetSecurityAssessmentFindingsChangeAuditLogsArgs)
r, err := GetSecurityAssessmentFindingsChangeAuditLogs(ctx, &args, opts...)
var s GetSecurityAssessmentFindingsChangeAuditLogsResult
if r != nil {
s = *r
}
return s, err
}).(GetSecurityAssessmentFindingsChangeAuditLogsResultOutput)
}
// A collection of arguments for invoking getSecurityAssessmentFindingsChangeAuditLogs.
type GetSecurityAssessmentFindingsChangeAuditLogsOutputArgs struct {
Filters GetSecurityAssessmentFindingsChangeAuditLogsFilterArrayInput `pulumi:"filters"`
// The unique key that identifies the finding. It is a string and unique within a security assessment.
FindingKey pulumi.StringPtrInput `pulumi:"findingKey"`
// The unique title that identifies the finding. It is a string and unique within a security assessment.
FindingTitle pulumi.StringPtrInput `pulumi:"findingTitle"`
// A filter to check findings whose risks were deferred by the user.
IsRiskDeferred pulumi.BoolPtrInput `pulumi:"isRiskDeferred"`
// A filter to check which user modified the risk level of the finding.
ModifiedBy pulumi.StringPtrInput `pulumi:"modifiedBy"`
// The OCID of the security assessment.
SecurityAssessmentId pulumi.StringInput `pulumi:"securityAssessmentId"`
// A filter to return only findings of a particular risk level.
Severity pulumi.StringPtrInput `pulumi:"severity"`
// Search for resources that were updated after a specific date. Specifying this parameter corresponding `timeUpdatedGreaterThanOrEqualTo` parameter will retrieve all resources updated after the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
TimeUpdatedGreaterThanOrEqualTo pulumi.StringPtrInput `pulumi:"timeUpdatedGreaterThanOrEqualTo"`
// Search for resources that were updated before a specific date. Specifying this parameter corresponding `timeUpdatedLessThan` parameter will retrieve all resources updated before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
TimeUpdatedLessThan pulumi.StringPtrInput `pulumi:"timeUpdatedLessThan"`
// Specifying `TimeValidUntilGreaterThanOrEqualToQueryParam` parameter will retrieve all items for which the risk level modification by user will no longer be valid greater than the date and time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
//
// **Example:** 2016-12-19T00:00:00.000Z
TimeValidUntilGreaterThanOrEqualTo pulumi.StringPtrInput `pulumi:"timeValidUntilGreaterThanOrEqualTo"`
// Specifying `TimeValidUntilLessThanQueryParam` parameter will retrieve all items for which the risk level modification by user will be valid until less than the date and time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
//
// **Example:** 2016-12-19T00:00:00.000Z
TimeValidUntilLessThan pulumi.StringPtrInput `pulumi:"timeValidUntilLessThan"`
}
func (GetSecurityAssessmentFindingsChangeAuditLogsOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetSecurityAssessmentFindingsChangeAuditLogsArgs)(nil)).Elem()
}
// A collection of values returned by getSecurityAssessmentFindingsChangeAuditLogs.
type GetSecurityAssessmentFindingsChangeAuditLogsResultOutput struct{ *pulumi.OutputState }
func (GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetSecurityAssessmentFindingsChangeAuditLogsResult)(nil)).Elem()
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) ToGetSecurityAssessmentFindingsChangeAuditLogsResultOutput() GetSecurityAssessmentFindingsChangeAuditLogsResultOutput {
return o
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) ToGetSecurityAssessmentFindingsChangeAuditLogsResultOutputWithContext(ctx context.Context) GetSecurityAssessmentFindingsChangeAuditLogsResultOutput {
return o
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) Filters() GetSecurityAssessmentFindingsChangeAuditLogsFilterArrayOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) []GetSecurityAssessmentFindingsChangeAuditLogsFilter {
return v.Filters
}).(GetSecurityAssessmentFindingsChangeAuditLogsFilterArrayOutput)
}
// The unique key that identifies the finding.
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) FindingKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string { return v.FindingKey }).(pulumi.StringPtrOutput)
}
// The short title for the finding whose risk is being modified.
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) FindingTitle() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string { return v.FindingTitle }).(pulumi.StringPtrOutput)
}
// The list of findings_change_audit_log_collection.
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) FindingsChangeAuditLogCollections() GetSecurityAssessmentFindingsChangeAuditLogsFindingsChangeAuditLogCollectionArrayOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) []GetSecurityAssessmentFindingsChangeAuditLogsFindingsChangeAuditLogCollection {
return v.FindingsChangeAuditLogCollections
}).(GetSecurityAssessmentFindingsChangeAuditLogsFindingsChangeAuditLogCollectionArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) string { return v.Id }).(pulumi.StringOutput)
}
// Determines if the user has deferred the risk level of this finding when he is ok with it and does not plan to do anything about it.
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) IsRiskDeferred() pulumi.BoolPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *bool { return v.IsRiskDeferred }).(pulumi.BoolPtrOutput)
}
// The user who initiated change of risk level of the finding
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) ModifiedBy() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string { return v.ModifiedBy }).(pulumi.StringPtrOutput)
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) SecurityAssessmentId() pulumi.StringOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) string { return v.SecurityAssessmentId }).(pulumi.StringOutput)
}
// The original severity / risk level of the finding as determined by security assessment.
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) Severity() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string { return v.Severity }).(pulumi.StringPtrOutput)
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) TimeUpdatedGreaterThanOrEqualTo() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string {
return v.TimeUpdatedGreaterThanOrEqualTo
}).(pulumi.StringPtrOutput)
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) TimeUpdatedLessThan() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string { return v.TimeUpdatedLessThan }).(pulumi.StringPtrOutput)
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) TimeValidUntilGreaterThanOrEqualTo() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string {
return v.TimeValidUntilGreaterThanOrEqualTo
}).(pulumi.StringPtrOutput)
}
func (o GetSecurityAssessmentFindingsChangeAuditLogsResultOutput) TimeValidUntilLessThan() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSecurityAssessmentFindingsChangeAuditLogsResult) *string { return v.TimeValidUntilLessThan }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(GetSecurityAssessmentFindingsChangeAuditLogsResultOutput{})
}