/
integrationRuntimeManaged.go
202 lines (189 loc) · 14.1 KB
/
integrationRuntimeManaged.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
// *** 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! ***
// nolint: lll
package datafactory
import (
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Manages an Azure Data Factory Managed Integration Runtime.
//
// > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/data_factory_integration_runtime_managed.html.markdown.
type IntegrationRuntimeManaged struct {
pulumi.CustomResourceState
// A `catalogInfo` block as defined below.
CatalogInfo IntegrationRuntimeManagedCatalogInfoPtrOutput `pulumi:"catalogInfo"`
// A `customSetupScript` block as defined below.
CustomSetupScript IntegrationRuntimeManagedCustomSetupScriptPtrOutput `pulumi:"customSetupScript"`
// Specifies the name of the Data Factory the Managed Integration Runtime belongs to. Changing this forces a new resource to be created.
DataFactoryName pulumi.StringOutput `pulumi:"dataFactoryName"`
Description pulumi.StringPtrOutput `pulumi:"description"`
// The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
Edition pulumi.StringPtrOutput `pulumi:"edition"`
// The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrize`. Defaults to `LicenseIncluded`.
LicenseType pulumi.StringPtrOutput `pulumi:"licenseType"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringOutput `pulumi:"location"`
// Defines the maximum parallel executions per node. Defaults to `1`. Max is `16`.
MaxParallelExecutionsPerNode pulumi.IntPtrOutput `pulumi:"maxParallelExecutionsPerNode"`
// Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringOutput `pulumi:"name"`
// The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
NodeSize pulumi.StringOutput `pulumi:"nodeSize"`
// Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
NumberOfNodes pulumi.IntPtrOutput `pulumi:"numberOfNodes"`
// The name of the resource group in which to create the Managed Integration Runtime. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// A `vnetIntegration` block as defined below.
VnetIntegration IntegrationRuntimeManagedVnetIntegrationPtrOutput `pulumi:"vnetIntegration"`
}
// NewIntegrationRuntimeManaged registers a new resource with the given unique name, arguments, and options.
func NewIntegrationRuntimeManaged(ctx *pulumi.Context,
name string, args *IntegrationRuntimeManagedArgs, opts ...pulumi.ResourceOption) (*IntegrationRuntimeManaged, error) {
if args == nil || args.DataFactoryName == nil {
return nil, errors.New("missing required argument 'DataFactoryName'")
}
if args == nil || args.NodeSize == nil {
return nil, errors.New("missing required argument 'NodeSize'")
}
if args == nil || args.ResourceGroupName == nil {
return nil, errors.New("missing required argument 'ResourceGroupName'")
}
if args == nil {
args = &IntegrationRuntimeManagedArgs{}
}
var resource IntegrationRuntimeManaged
err := ctx.RegisterResource("azure:datafactory/integrationRuntimeManaged:IntegrationRuntimeManaged", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetIntegrationRuntimeManaged gets an existing IntegrationRuntimeManaged resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetIntegrationRuntimeManaged(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *IntegrationRuntimeManagedState, opts ...pulumi.ResourceOption) (*IntegrationRuntimeManaged, error) {
var resource IntegrationRuntimeManaged
err := ctx.ReadResource("azure:datafactory/integrationRuntimeManaged:IntegrationRuntimeManaged", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering IntegrationRuntimeManaged resources.
type integrationRuntimeManagedState struct {
// A `catalogInfo` block as defined below.
CatalogInfo *IntegrationRuntimeManagedCatalogInfo `pulumi:"catalogInfo"`
// A `customSetupScript` block as defined below.
CustomSetupScript *IntegrationRuntimeManagedCustomSetupScript `pulumi:"customSetupScript"`
// Specifies the name of the Data Factory the Managed Integration Runtime belongs to. Changing this forces a new resource to be created.
DataFactoryName *string `pulumi:"dataFactoryName"`
Description *string `pulumi:"description"`
// The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
Edition *string `pulumi:"edition"`
// The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrize`. Defaults to `LicenseIncluded`.
LicenseType *string `pulumi:"licenseType"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// Defines the maximum parallel executions per node. Defaults to `1`. Max is `16`.
MaxParallelExecutionsPerNode *int `pulumi:"maxParallelExecutionsPerNode"`
// Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name *string `pulumi:"name"`
// The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
NodeSize *string `pulumi:"nodeSize"`
// Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
NumberOfNodes *int `pulumi:"numberOfNodes"`
// The name of the resource group in which to create the Managed Integration Runtime. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// A `vnetIntegration` block as defined below.
VnetIntegration *IntegrationRuntimeManagedVnetIntegration `pulumi:"vnetIntegration"`
}
type IntegrationRuntimeManagedState struct {
// A `catalogInfo` block as defined below.
CatalogInfo IntegrationRuntimeManagedCatalogInfoPtrInput
// A `customSetupScript` block as defined below.
CustomSetupScript IntegrationRuntimeManagedCustomSetupScriptPtrInput
// Specifies the name of the Data Factory the Managed Integration Runtime belongs to. Changing this forces a new resource to be created.
DataFactoryName pulumi.StringPtrInput
Description pulumi.StringPtrInput
// The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
Edition pulumi.StringPtrInput
// The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrize`. Defaults to `LicenseIncluded`.
LicenseType pulumi.StringPtrInput
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// Defines the maximum parallel executions per node. Defaults to `1`. Max is `16`.
MaxParallelExecutionsPerNode pulumi.IntPtrInput
// Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringPtrInput
// The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
NodeSize pulumi.StringPtrInput
// Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
NumberOfNodes pulumi.IntPtrInput
// The name of the resource group in which to create the Managed Integration Runtime. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// A `vnetIntegration` block as defined below.
VnetIntegration IntegrationRuntimeManagedVnetIntegrationPtrInput
}
func (IntegrationRuntimeManagedState) ElementType() reflect.Type {
return reflect.TypeOf((*integrationRuntimeManagedState)(nil)).Elem()
}
type integrationRuntimeManagedArgs struct {
// A `catalogInfo` block as defined below.
CatalogInfo *IntegrationRuntimeManagedCatalogInfo `pulumi:"catalogInfo"`
// A `customSetupScript` block as defined below.
CustomSetupScript *IntegrationRuntimeManagedCustomSetupScript `pulumi:"customSetupScript"`
// Specifies the name of the Data Factory the Managed Integration Runtime belongs to. Changing this forces a new resource to be created.
DataFactoryName string `pulumi:"dataFactoryName"`
Description *string `pulumi:"description"`
// The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
Edition *string `pulumi:"edition"`
// The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrize`. Defaults to `LicenseIncluded`.
LicenseType *string `pulumi:"licenseType"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// Defines the maximum parallel executions per node. Defaults to `1`. Max is `16`.
MaxParallelExecutionsPerNode *int `pulumi:"maxParallelExecutionsPerNode"`
// Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name *string `pulumi:"name"`
// The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
NodeSize string `pulumi:"nodeSize"`
// Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
NumberOfNodes *int `pulumi:"numberOfNodes"`
// The name of the resource group in which to create the Managed Integration Runtime. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// A `vnetIntegration` block as defined below.
VnetIntegration *IntegrationRuntimeManagedVnetIntegration `pulumi:"vnetIntegration"`
}
// The set of arguments for constructing a IntegrationRuntimeManaged resource.
type IntegrationRuntimeManagedArgs struct {
// A `catalogInfo` block as defined below.
CatalogInfo IntegrationRuntimeManagedCatalogInfoPtrInput
// A `customSetupScript` block as defined below.
CustomSetupScript IntegrationRuntimeManagedCustomSetupScriptPtrInput
// Specifies the name of the Data Factory the Managed Integration Runtime belongs to. Changing this forces a new resource to be created.
DataFactoryName pulumi.StringInput
Description pulumi.StringPtrInput
// The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
Edition pulumi.StringPtrInput
// The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrize`. Defaults to `LicenseIncluded`.
LicenseType pulumi.StringPtrInput
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// Defines the maximum parallel executions per node. Defaults to `1`. Max is `16`.
MaxParallelExecutionsPerNode pulumi.IntPtrInput
// Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringPtrInput
// The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
NodeSize pulumi.StringInput
// Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
NumberOfNodes pulumi.IntPtrInput
// The name of the resource group in which to create the Managed Integration Runtime. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// A `vnetIntegration` block as defined below.
VnetIntegration IntegrationRuntimeManagedVnetIntegrationPtrInput
}
func (IntegrationRuntimeManagedArgs) ElementType() reflect.Type {
return reflect.TypeOf((*integrationRuntimeManagedArgs)(nil)).Elem()
}