/
profileOneConnect.ts
229 lines (220 loc) · 11.5 KB
/
profileOneConnect.ts
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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilities from "../utilities";
/**
* `f5bigip.ltm.ProfileOneConnect` Configures a custom profileOneconnect for use by health checks.
*
* For resources should be named with their "full path". The full path is the combination of the partition + name of the resource. For example /Common/my-pool.
*
* ## Example Usage
*
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const oneconnectSanjose = new f5bigip.ltm.ProfileOneConnect("oneconnect-sanjose", {
* defaultsFrom: "/Common/oneconnect",
* idleTimeoutOverride: "disabled",
* maxAge: 3600,
* maxReuse: 1000,
* maxSize: 1000,
* name: "sanjose",
* partition: "Common",
* sharePools: "disabled",
* sourceMask: "255.255.255.255",
* });
* ```
*
* > This content is derived from https://github.com/terraform-providers/terraform-provider-bigip/blob/master/website/docs/r/ltm_profile_oneconnect.html.markdown.
*/
export class ProfileOneConnect extends pulumi.CustomResource {
/**
* Get an existing ProfileOneConnect resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProfileOneConnectState, opts?: pulumi.CustomResourceOptions): ProfileOneConnect {
return new ProfileOneConnect(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'f5bigip:ltm/profileOneConnect:ProfileOneConnect';
/**
* Returns true if the given object is an instance of ProfileOneConnect. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is ProfileOneConnect {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === ProfileOneConnect.__pulumiType;
}
/**
* Specifies the profile that you want to use as the parent profile. Your new profile inherits all settings and values from the parent profile specified.
*/
public readonly defaultsFrom!: pulumi.Output<string | undefined>;
/**
* Specifies the number of seconds that a connection is idle before the connection flow is eligible for deletion. Possible values are disabled, indefinite, or a numeric value that you specify. The default value is disabled.
*/
public readonly idleTimeoutOverride!: pulumi.Output<string | undefined>;
/**
* Specifies the maximum age in number of seconds allowed for a connection in the connection reuse pool. For any connection with an age higher than this value, the system removes that connection from the reuse pool. The default value is 86400.
*/
public readonly maxAge!: pulumi.Output<number | undefined>;
/**
* Specifies the maximum number of times that a server-side connection can be reused. The default value is 1000.
*/
public readonly maxReuse!: pulumi.Output<number | undefined>;
/**
* Specifies the maximum number of connections that the system holds in the connection reuse pool. If the pool is already full, then the server-side connection closes after the response is completed. The default value is 10000.
*/
public readonly maxSize!: pulumi.Output<number | undefined>;
/**
* Name of the profile_oneconnect
*/
public readonly name!: pulumi.Output<string>;
/**
* Displays the administrative partition within which this profile resides
*/
public readonly partition!: pulumi.Output<string | undefined>;
/**
* Specify if you want to share the pool, default value is "disabled"
*/
public readonly sharePools!: pulumi.Output<string | undefined>;
/**
* Specifies a source IP mask. The default value is 0.0.0.0. The system applies the value of this option to the source address to determine its eligibility for reuse. A mask of 0.0.0.0 causes the system to share reused connections across all clients. A host mask (all 1's in binary), causes the system to share only those reused connections originating from the same client IP address.
*/
public readonly sourceMask!: pulumi.Output<string | undefined>;
/**
* Create a ProfileOneConnect resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ProfileOneConnectArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: ProfileOneConnectArgs | ProfileOneConnectState, opts?: pulumi.CustomResourceOptions) {
let inputs: pulumi.Inputs = {};
if (opts && opts.id) {
const state = argsOrState as ProfileOneConnectState | undefined;
inputs["defaultsFrom"] = state ? state.defaultsFrom : undefined;
inputs["idleTimeoutOverride"] = state ? state.idleTimeoutOverride : undefined;
inputs["maxAge"] = state ? state.maxAge : undefined;
inputs["maxReuse"] = state ? state.maxReuse : undefined;
inputs["maxSize"] = state ? state.maxSize : undefined;
inputs["name"] = state ? state.name : undefined;
inputs["partition"] = state ? state.partition : undefined;
inputs["sharePools"] = state ? state.sharePools : undefined;
inputs["sourceMask"] = state ? state.sourceMask : undefined;
} else {
const args = argsOrState as ProfileOneConnectArgs | undefined;
if (!args || args.name === undefined) {
throw new Error("Missing required property 'name'");
}
inputs["defaultsFrom"] = args ? args.defaultsFrom : undefined;
inputs["idleTimeoutOverride"] = args ? args.idleTimeoutOverride : undefined;
inputs["maxAge"] = args ? args.maxAge : undefined;
inputs["maxReuse"] = args ? args.maxReuse : undefined;
inputs["maxSize"] = args ? args.maxSize : undefined;
inputs["name"] = args ? args.name : undefined;
inputs["partition"] = args ? args.partition : undefined;
inputs["sharePools"] = args ? args.sharePools : undefined;
inputs["sourceMask"] = args ? args.sourceMask : undefined;
}
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
super(ProfileOneConnect.__pulumiType, name, inputs, opts);
}
}
/**
* Input properties used for looking up and filtering ProfileOneConnect resources.
*/
export interface ProfileOneConnectState {
/**
* Specifies the profile that you want to use as the parent profile. Your new profile inherits all settings and values from the parent profile specified.
*/
readonly defaultsFrom?: pulumi.Input<string>;
/**
* Specifies the number of seconds that a connection is idle before the connection flow is eligible for deletion. Possible values are disabled, indefinite, or a numeric value that you specify. The default value is disabled.
*/
readonly idleTimeoutOverride?: pulumi.Input<string>;
/**
* Specifies the maximum age in number of seconds allowed for a connection in the connection reuse pool. For any connection with an age higher than this value, the system removes that connection from the reuse pool. The default value is 86400.
*/
readonly maxAge?: pulumi.Input<number>;
/**
* Specifies the maximum number of times that a server-side connection can be reused. The default value is 1000.
*/
readonly maxReuse?: pulumi.Input<number>;
/**
* Specifies the maximum number of connections that the system holds in the connection reuse pool. If the pool is already full, then the server-side connection closes after the response is completed. The default value is 10000.
*/
readonly maxSize?: pulumi.Input<number>;
/**
* Name of the profile_oneconnect
*/
readonly name?: pulumi.Input<string>;
/**
* Displays the administrative partition within which this profile resides
*/
readonly partition?: pulumi.Input<string>;
/**
* Specify if you want to share the pool, default value is "disabled"
*/
readonly sharePools?: pulumi.Input<string>;
/**
* Specifies a source IP mask. The default value is 0.0.0.0. The system applies the value of this option to the source address to determine its eligibility for reuse. A mask of 0.0.0.0 causes the system to share reused connections across all clients. A host mask (all 1's in binary), causes the system to share only those reused connections originating from the same client IP address.
*/
readonly sourceMask?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ProfileOneConnect resource.
*/
export interface ProfileOneConnectArgs {
/**
* Specifies the profile that you want to use as the parent profile. Your new profile inherits all settings and values from the parent profile specified.
*/
readonly defaultsFrom?: pulumi.Input<string>;
/**
* Specifies the number of seconds that a connection is idle before the connection flow is eligible for deletion. Possible values are disabled, indefinite, or a numeric value that you specify. The default value is disabled.
*/
readonly idleTimeoutOverride?: pulumi.Input<string>;
/**
* Specifies the maximum age in number of seconds allowed for a connection in the connection reuse pool. For any connection with an age higher than this value, the system removes that connection from the reuse pool. The default value is 86400.
*/
readonly maxAge?: pulumi.Input<number>;
/**
* Specifies the maximum number of times that a server-side connection can be reused. The default value is 1000.
*/
readonly maxReuse?: pulumi.Input<number>;
/**
* Specifies the maximum number of connections that the system holds in the connection reuse pool. If the pool is already full, then the server-side connection closes after the response is completed. The default value is 10000.
*/
readonly maxSize?: pulumi.Input<number>;
/**
* Name of the profile_oneconnect
*/
readonly name: pulumi.Input<string>;
/**
* Displays the administrative partition within which this profile resides
*/
readonly partition?: pulumi.Input<string>;
/**
* Specify if you want to share the pool, default value is "disabled"
*/
readonly sharePools?: pulumi.Input<string>;
/**
* Specifies a source IP mask. The default value is 0.0.0.0. The system applies the value of this option to the source address to determine its eligibility for reuse. A mask of 0.0.0.0 causes the system to share reused connections across all clients. A host mask (all 1's in binary), causes the system to share only those reused connections originating from the same client IP address.
*/
readonly sourceMask?: pulumi.Input<string>;
}