/
getProfileprotocoloptions.go
219 lines (185 loc) · 11.5 KB
/
getProfileprotocoloptions.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
// 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 firewall
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Use this data source to get information on an fortios firewall profileprotocoloptions
func LookupProfileprotocoloptions(ctx *pulumi.Context, args *LookupProfileprotocoloptionsArgs, opts ...pulumi.InvokeOption) (*LookupProfileprotocoloptionsResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupProfileprotocoloptionsResult
err := ctx.Invoke("fortios:firewall/getProfileprotocoloptions:getProfileprotocoloptions", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getProfileprotocoloptions.
type LookupProfileprotocoloptionsArgs struct {
// Specify the name of the desired firewall profileprotocoloptions.
Name string `pulumi:"name"`
// Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
}
// A collection of values returned by getProfileprotocoloptions.
type LookupProfileprotocoloptionsResult struct {
// Configure CIFS protocol options. The structure of `cifs` block is documented below.
Cifs []GetProfileprotocoloptionsCif `pulumi:"cifs"`
// Optional comments.
Comment string `pulumi:"comment"`
// Configure DNS protocol options. The structure of `dns` block is documented below.
Dns []GetProfileprotocoloptionsDn `pulumi:"dns"`
// Flow/proxy feature set.
FeatureSet string `pulumi:"featureSet"`
// Configure FTP protocol options. The structure of `ftp` block is documented below.
Ftps []GetProfileprotocoloptionsFtp `pulumi:"ftps"`
// Configure HTTP protocol options. The structure of `http` block is documented below.
Https []GetProfileprotocoloptionsHttp `pulumi:"https"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Configure IMAP protocol options. The structure of `imap` block is documented below.
Imaps []GetProfileprotocoloptionsImap `pulumi:"imaps"`
// Configure Mail signature. The structure of `mailSignature` block is documented below.
MailSignatures []GetProfileprotocoloptionsMailSignature `pulumi:"mailSignatures"`
// Configure MAPI protocol options. The structure of `mapi` block is documented below.
Mapis []GetProfileprotocoloptionsMapi `pulumi:"mapis"`
// Name.
Name string `pulumi:"name"`
// Configure NNTP protocol options. The structure of `nntp` block is documented below.
Nntps []GetProfileprotocoloptionsNntp `pulumi:"nntps"`
// Enable/disable logging for antivirus oversize file blocking.
OversizeLog string `pulumi:"oversizeLog"`
// Configure POP3 protocol options. The structure of `pop3` block is documented below.
Pop3s []GetProfileprotocoloptionsPop3 `pulumi:"pop3s"`
// Name of the replacement message group to be used
ReplacemsgGroup string `pulumi:"replacemsgGroup"`
// Enable/disable inspection of RPC over HTTP.
RpcOverHttp string `pulumi:"rpcOverHttp"`
// Configure SMTP protocol options. The structure of `smtp` block is documented below.
Smtps []GetProfileprotocoloptionsSmtp `pulumi:"smtps"`
// Configure SFTP and SCP protocol options. The structure of `ssh` block is documented below.
Sshes []GetProfileprotocoloptionsSsh `pulumi:"sshes"`
// Enable/disable logging for HTTP/HTTPS switching protocols.
SwitchingProtocolsLog string `pulumi:"switchingProtocolsLog"`
Vdomparam *string `pulumi:"vdomparam"`
}
func LookupProfileprotocoloptionsOutput(ctx *pulumi.Context, args LookupProfileprotocoloptionsOutputArgs, opts ...pulumi.InvokeOption) LookupProfileprotocoloptionsResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupProfileprotocoloptionsResult, error) {
args := v.(LookupProfileprotocoloptionsArgs)
r, err := LookupProfileprotocoloptions(ctx, &args, opts...)
var s LookupProfileprotocoloptionsResult
if r != nil {
s = *r
}
return s, err
}).(LookupProfileprotocoloptionsResultOutput)
}
// A collection of arguments for invoking getProfileprotocoloptions.
type LookupProfileprotocoloptionsOutputArgs struct {
// Specify the name of the desired firewall profileprotocoloptions.
Name pulumi.StringInput `pulumi:"name"`
// Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput `pulumi:"vdomparam"`
}
func (LookupProfileprotocoloptionsOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupProfileprotocoloptionsArgs)(nil)).Elem()
}
// A collection of values returned by getProfileprotocoloptions.
type LookupProfileprotocoloptionsResultOutput struct{ *pulumi.OutputState }
func (LookupProfileprotocoloptionsResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupProfileprotocoloptionsResult)(nil)).Elem()
}
func (o LookupProfileprotocoloptionsResultOutput) ToLookupProfileprotocoloptionsResultOutput() LookupProfileprotocoloptionsResultOutput {
return o
}
func (o LookupProfileprotocoloptionsResultOutput) ToLookupProfileprotocoloptionsResultOutputWithContext(ctx context.Context) LookupProfileprotocoloptionsResultOutput {
return o
}
// Configure CIFS protocol options. The structure of `cifs` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Cifs() GetProfileprotocoloptionsCifArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsCif { return v.Cifs }).(GetProfileprotocoloptionsCifArrayOutput)
}
// Optional comments.
func (o LookupProfileprotocoloptionsResultOutput) Comment() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.Comment }).(pulumi.StringOutput)
}
// Configure DNS protocol options. The structure of `dns` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Dns() GetProfileprotocoloptionsDnArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsDn { return v.Dns }).(GetProfileprotocoloptionsDnArrayOutput)
}
// Flow/proxy feature set.
func (o LookupProfileprotocoloptionsResultOutput) FeatureSet() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.FeatureSet }).(pulumi.StringOutput)
}
// Configure FTP protocol options. The structure of `ftp` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Ftps() GetProfileprotocoloptionsFtpArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsFtp { return v.Ftps }).(GetProfileprotocoloptionsFtpArrayOutput)
}
// Configure HTTP protocol options. The structure of `http` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Https() GetProfileprotocoloptionsHttpArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsHttp { return v.Https }).(GetProfileprotocoloptionsHttpArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupProfileprotocoloptionsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.Id }).(pulumi.StringOutput)
}
// Configure IMAP protocol options. The structure of `imap` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Imaps() GetProfileprotocoloptionsImapArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsImap { return v.Imaps }).(GetProfileprotocoloptionsImapArrayOutput)
}
// Configure Mail signature. The structure of `mailSignature` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) MailSignatures() GetProfileprotocoloptionsMailSignatureArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsMailSignature {
return v.MailSignatures
}).(GetProfileprotocoloptionsMailSignatureArrayOutput)
}
// Configure MAPI protocol options. The structure of `mapi` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Mapis() GetProfileprotocoloptionsMapiArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsMapi { return v.Mapis }).(GetProfileprotocoloptionsMapiArrayOutput)
}
// Name.
func (o LookupProfileprotocoloptionsResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.Name }).(pulumi.StringOutput)
}
// Configure NNTP protocol options. The structure of `nntp` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Nntps() GetProfileprotocoloptionsNntpArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsNntp { return v.Nntps }).(GetProfileprotocoloptionsNntpArrayOutput)
}
// Enable/disable logging for antivirus oversize file blocking.
func (o LookupProfileprotocoloptionsResultOutput) OversizeLog() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.OversizeLog }).(pulumi.StringOutput)
}
// Configure POP3 protocol options. The structure of `pop3` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Pop3s() GetProfileprotocoloptionsPop3ArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsPop3 { return v.Pop3s }).(GetProfileprotocoloptionsPop3ArrayOutput)
}
// Name of the replacement message group to be used
func (o LookupProfileprotocoloptionsResultOutput) ReplacemsgGroup() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.ReplacemsgGroup }).(pulumi.StringOutput)
}
// Enable/disable inspection of RPC over HTTP.
func (o LookupProfileprotocoloptionsResultOutput) RpcOverHttp() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.RpcOverHttp }).(pulumi.StringOutput)
}
// Configure SMTP protocol options. The structure of `smtp` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Smtps() GetProfileprotocoloptionsSmtpArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsSmtp { return v.Smtps }).(GetProfileprotocoloptionsSmtpArrayOutput)
}
// Configure SFTP and SCP protocol options. The structure of `ssh` block is documented below.
func (o LookupProfileprotocoloptionsResultOutput) Sshes() GetProfileprotocoloptionsSshArrayOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) []GetProfileprotocoloptionsSsh { return v.Sshes }).(GetProfileprotocoloptionsSshArrayOutput)
}
// Enable/disable logging for HTTP/HTTPS switching protocols.
func (o LookupProfileprotocoloptionsResultOutput) SwitchingProtocolsLog() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) string { return v.SwitchingProtocolsLog }).(pulumi.StringOutput)
}
func (o LookupProfileprotocoloptionsResultOutput) Vdomparam() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupProfileprotocoloptionsResult) *string { return v.Vdomparam }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupProfileprotocoloptionsResultOutput{})
}