generated from pulumi/pulumi-tf-provider-boilerplate
/
getFleetCryptoAnalysisResult.go
232 lines (200 loc) · 10.1 KB
/
getFleetCryptoAnalysisResult.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 jms
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 Fleet Crypto Analysis Result resource in Oracle Cloud Infrastructure Jms service.
//
// Retrieve the metadata for the result of a Crypto event analysis.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Jms"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Jms.GetFleetCryptoAnalysisResult(ctx, &jms.GetFleetCryptoAnalysisResultArgs{
// CryptoAnalysisResultId: testResult.Id,
// FleetId: testFleet.Id,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetFleetCryptoAnalysisResult(ctx *pulumi.Context, args *GetFleetCryptoAnalysisResultArgs, opts ...pulumi.InvokeOption) (*GetFleetCryptoAnalysisResultResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetFleetCryptoAnalysisResultResult
err := ctx.Invoke("oci:Jms/getFleetCryptoAnalysisResult:getFleetCryptoAnalysisResult", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getFleetCryptoAnalysisResult.
type GetFleetCryptoAnalysisResultArgs struct {
// The OCID of the analysis result.
CryptoAnalysisResultId string `pulumi:"cryptoAnalysisResultId"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Fleet.
FleetId string `pulumi:"fleetId"`
}
// A collection of values returned by getFleetCryptoAnalysisResult.
type GetFleetCryptoAnalysisResultResult struct {
// The result aggregation mode
AggregationMode string `pulumi:"aggregationMode"`
// The Object Storage bucket name of this analysis result.
Bucket string `pulumi:"bucket"`
CryptoAnalysisResultId string `pulumi:"cryptoAnalysisResultId"`
// The Crypto Roadmap version used to perform the analysis.
CryptoRoadmapVersion string `pulumi:"cryptoRoadmapVersion"`
// Total number of findings with the analysis.
FindingCount int `pulumi:"findingCount"`
// The fleet OCID.
FleetId string `pulumi:"fleetId"`
// The hostname of the managed instance.
HostName string `pulumi:"hostName"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The managed instance OCID.
ManagedInstanceId string `pulumi:"managedInstanceId"`
// The Object Storage namespace of this analysis result.
Namespace string `pulumi:"namespace"`
// Total number of non-compliant findings with the analysis. A non-compliant finding means the application won't work properly with the changes introduced by the Crypto Roadmap version used by the analysis.
NonCompliantFindingCount int `pulumi:"nonCompliantFindingCount"`
// The Object Storage object name of this analysis result.
Object string `pulumi:"object"`
// Total number of summarized events. Summarized events are deduplicated events of interest.
SummarizedEventCount int `pulumi:"summarizedEventCount"`
// The time the result is compiled.
TimeCreated string `pulumi:"timeCreated"`
// Time of the first event in the analysis.
TimeFirstEvent string `pulumi:"timeFirstEvent"`
// Time of the last event in the analysis.
TimeLastEvent string `pulumi:"timeLastEvent"`
// Total number of events in the analysis.
TotalEventCount int `pulumi:"totalEventCount"`
// The OCID of the work request to start the analysis.
WorkRequestId string `pulumi:"workRequestId"`
}
func GetFleetCryptoAnalysisResultOutput(ctx *pulumi.Context, args GetFleetCryptoAnalysisResultOutputArgs, opts ...pulumi.InvokeOption) GetFleetCryptoAnalysisResultResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetFleetCryptoAnalysisResultResult, error) {
args := v.(GetFleetCryptoAnalysisResultArgs)
r, err := GetFleetCryptoAnalysisResult(ctx, &args, opts...)
var s GetFleetCryptoAnalysisResultResult
if r != nil {
s = *r
}
return s, err
}).(GetFleetCryptoAnalysisResultResultOutput)
}
// A collection of arguments for invoking getFleetCryptoAnalysisResult.
type GetFleetCryptoAnalysisResultOutputArgs struct {
// The OCID of the analysis result.
CryptoAnalysisResultId pulumi.StringInput `pulumi:"cryptoAnalysisResultId"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Fleet.
FleetId pulumi.StringInput `pulumi:"fleetId"`
}
func (GetFleetCryptoAnalysisResultOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetFleetCryptoAnalysisResultArgs)(nil)).Elem()
}
// A collection of values returned by getFleetCryptoAnalysisResult.
type GetFleetCryptoAnalysisResultResultOutput struct{ *pulumi.OutputState }
func (GetFleetCryptoAnalysisResultResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetFleetCryptoAnalysisResultResult)(nil)).Elem()
}
func (o GetFleetCryptoAnalysisResultResultOutput) ToGetFleetCryptoAnalysisResultResultOutput() GetFleetCryptoAnalysisResultResultOutput {
return o
}
func (o GetFleetCryptoAnalysisResultResultOutput) ToGetFleetCryptoAnalysisResultResultOutputWithContext(ctx context.Context) GetFleetCryptoAnalysisResultResultOutput {
return o
}
// The result aggregation mode
func (o GetFleetCryptoAnalysisResultResultOutput) AggregationMode() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.AggregationMode }).(pulumi.StringOutput)
}
// The Object Storage bucket name of this analysis result.
func (o GetFleetCryptoAnalysisResultResultOutput) Bucket() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.Bucket }).(pulumi.StringOutput)
}
func (o GetFleetCryptoAnalysisResultResultOutput) CryptoAnalysisResultId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.CryptoAnalysisResultId }).(pulumi.StringOutput)
}
// The Crypto Roadmap version used to perform the analysis.
func (o GetFleetCryptoAnalysisResultResultOutput) CryptoRoadmapVersion() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.CryptoRoadmapVersion }).(pulumi.StringOutput)
}
// Total number of findings with the analysis.
func (o GetFleetCryptoAnalysisResultResultOutput) FindingCount() pulumi.IntOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) int { return v.FindingCount }).(pulumi.IntOutput)
}
// The fleet OCID.
func (o GetFleetCryptoAnalysisResultResultOutput) FleetId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.FleetId }).(pulumi.StringOutput)
}
// The hostname of the managed instance.
func (o GetFleetCryptoAnalysisResultResultOutput) HostName() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.HostName }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetFleetCryptoAnalysisResultResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.Id }).(pulumi.StringOutput)
}
// The managed instance OCID.
func (o GetFleetCryptoAnalysisResultResultOutput) ManagedInstanceId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.ManagedInstanceId }).(pulumi.StringOutput)
}
// The Object Storage namespace of this analysis result.
func (o GetFleetCryptoAnalysisResultResultOutput) Namespace() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.Namespace }).(pulumi.StringOutput)
}
// Total number of non-compliant findings with the analysis. A non-compliant finding means the application won't work properly with the changes introduced by the Crypto Roadmap version used by the analysis.
func (o GetFleetCryptoAnalysisResultResultOutput) NonCompliantFindingCount() pulumi.IntOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) int { return v.NonCompliantFindingCount }).(pulumi.IntOutput)
}
// The Object Storage object name of this analysis result.
func (o GetFleetCryptoAnalysisResultResultOutput) Object() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.Object }).(pulumi.StringOutput)
}
// Total number of summarized events. Summarized events are deduplicated events of interest.
func (o GetFleetCryptoAnalysisResultResultOutput) SummarizedEventCount() pulumi.IntOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) int { return v.SummarizedEventCount }).(pulumi.IntOutput)
}
// The time the result is compiled.
func (o GetFleetCryptoAnalysisResultResultOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.TimeCreated }).(pulumi.StringOutput)
}
// Time of the first event in the analysis.
func (o GetFleetCryptoAnalysisResultResultOutput) TimeFirstEvent() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.TimeFirstEvent }).(pulumi.StringOutput)
}
// Time of the last event in the analysis.
func (o GetFleetCryptoAnalysisResultResultOutput) TimeLastEvent() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.TimeLastEvent }).(pulumi.StringOutput)
}
// Total number of events in the analysis.
func (o GetFleetCryptoAnalysisResultResultOutput) TotalEventCount() pulumi.IntOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) int { return v.TotalEventCount }).(pulumi.IntOutput)
}
// The OCID of the work request to start the analysis.
func (o GetFleetCryptoAnalysisResultResultOutput) WorkRequestId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetCryptoAnalysisResultResult) string { return v.WorkRequestId }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(GetFleetCryptoAnalysisResultResultOutput{})
}