/
notebookInstance.go
446 lines (400 loc) · 25 KB
/
notebookInstance.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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
// *** 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! ***
package sagemaker
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a Sagemaker Notebook Instance resource.
//
// ## Example Usage
// ### Basic usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/sagemaker"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := sagemaker.NewNotebookInstance(ctx, "ni", &sagemaker.NotebookInstanceArgs{
// RoleArn: pulumi.Any(aws_iam_role.Role.Arn),
// InstanceType: pulumi.String("ml.t2.medium"),
// Tags: pulumi.StringMap{
// "Name": pulumi.String("foo"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
// ### Code repository usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/sagemaker"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := sagemaker.NewCodeRepository(ctx, "example", &sagemaker.CodeRepositoryArgs{
// CodeRepositoryName: pulumi.String("my-notebook-instance-code-repo"),
// GitConfig: &sagemaker.CodeRepositoryGitConfigArgs{
// RepositoryUrl: pulumi.String("https://github.com/hashicorp/terraform-provider-aws.git"),
// },
// })
// if err != nil {
// return err
// }
// _, err = sagemaker.NewNotebookInstance(ctx, "ni", &sagemaker.NotebookInstanceArgs{
// RoleArn: pulumi.Any(aws_iam_role.Role.Arn),
// InstanceType: pulumi.String("ml.t2.medium"),
// DefaultCodeRepository: example.CodeRepositoryName,
// Tags: pulumi.StringMap{
// "Name": pulumi.String("foo"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// Sagemaker Notebook Instances can be imported using the `name`, e.g.,
//
// ```sh
// $ pulumi import aws:sagemaker/notebookInstance:NotebookInstance test_notebook_instance my-notebook-instance
// ```
type NotebookInstance struct {
pulumi.CustomResourceState
// An array of up to three Git repositories to associate with the notebook instance.
// These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance.
AdditionalCodeRepositories pulumi.StringArrayOutput `pulumi:"additionalCodeRepositories"`
// The Amazon Resource Name (ARN) assigned by AWS to this notebook instance.
Arn pulumi.StringOutput `pulumi:"arn"`
// The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository.
DefaultCodeRepository pulumi.StringPtrOutput `pulumi:"defaultCodeRepository"`
// Set to `Disabled` to disable internet access to notebook. Requires `securityGroups` and `subnetId` to be set. Supported values: `Enabled` (Default) or `Disabled`. If set to `Disabled`, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC.
DirectInternetAccess pulumi.StringPtrOutput `pulumi:"directInternetAccess"`
// The name of ML compute instance type.
InstanceType pulumi.StringOutput `pulumi:"instanceType"`
// The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"`
// The name of a lifecycle configuration to associate with the notebook instance.
LifecycleConfigName pulumi.StringPtrOutput `pulumi:"lifecycleConfigName"`
// The name of the notebook instance (must be unique).
Name pulumi.StringOutput `pulumi:"name"`
// The network interface ID that Amazon SageMaker created at the time of creating the instance. Only available when setting `subnetId`.
NetworkInterfaceId pulumi.StringOutput `pulumi:"networkInterfaceId"`
// The platform identifier of the notebook instance runtime environment. This value can be either `notebook-al1-v1` or `notebook-al2-v1`, depending on which version of Amazon Linux you require.
PlatformIdentifier pulumi.StringOutput `pulumi:"platformIdentifier"`
// The ARN of the IAM role to be used by the notebook instance which allows SageMaker to call other services on your behalf.
RoleArn pulumi.StringOutput `pulumi:"roleArn"`
// Whether root access is `Enabled` or `Disabled` for users of the notebook instance. The default value is `Enabled`.
RootAccess pulumi.StringPtrOutput `pulumi:"rootAccess"`
// The associated security groups.
SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
// The VPC subnet ID.
SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider .
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// The URL that you use to connect to the Jupyter notebook that is running in your notebook instance.
Url pulumi.StringOutput `pulumi:"url"`
// The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
VolumeSize pulumi.IntPtrOutput `pulumi:"volumeSize"`
}
// NewNotebookInstance registers a new resource with the given unique name, arguments, and options.
func NewNotebookInstance(ctx *pulumi.Context,
name string, args *NotebookInstanceArgs, opts ...pulumi.ResourceOption) (*NotebookInstance, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.InstanceType == nil {
return nil, errors.New("invalid value for required argument 'InstanceType'")
}
if args.RoleArn == nil {
return nil, errors.New("invalid value for required argument 'RoleArn'")
}
var resource NotebookInstance
err := ctx.RegisterResource("aws:sagemaker/notebookInstance:NotebookInstance", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetNotebookInstance gets an existing NotebookInstance 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 GetNotebookInstance(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *NotebookInstanceState, opts ...pulumi.ResourceOption) (*NotebookInstance, error) {
var resource NotebookInstance
err := ctx.ReadResource("aws:sagemaker/notebookInstance:NotebookInstance", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering NotebookInstance resources.
type notebookInstanceState struct {
// An array of up to three Git repositories to associate with the notebook instance.
// These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance.
AdditionalCodeRepositories []string `pulumi:"additionalCodeRepositories"`
// The Amazon Resource Name (ARN) assigned by AWS to this notebook instance.
Arn *string `pulumi:"arn"`
// The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository.
DefaultCodeRepository *string `pulumi:"defaultCodeRepository"`
// Set to `Disabled` to disable internet access to notebook. Requires `securityGroups` and `subnetId` to be set. Supported values: `Enabled` (Default) or `Disabled`. If set to `Disabled`, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC.
DirectInternetAccess *string `pulumi:"directInternetAccess"`
// The name of ML compute instance type.
InstanceType *string `pulumi:"instanceType"`
// The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
KmsKeyId *string `pulumi:"kmsKeyId"`
// The name of a lifecycle configuration to associate with the notebook instance.
LifecycleConfigName *string `pulumi:"lifecycleConfigName"`
// The name of the notebook instance (must be unique).
Name *string `pulumi:"name"`
// The network interface ID that Amazon SageMaker created at the time of creating the instance. Only available when setting `subnetId`.
NetworkInterfaceId *string `pulumi:"networkInterfaceId"`
// The platform identifier of the notebook instance runtime environment. This value can be either `notebook-al1-v1` or `notebook-al2-v1`, depending on which version of Amazon Linux you require.
PlatformIdentifier *string `pulumi:"platformIdentifier"`
// The ARN of the IAM role to be used by the notebook instance which allows SageMaker to call other services on your behalf.
RoleArn *string `pulumi:"roleArn"`
// Whether root access is `Enabled` or `Disabled` for users of the notebook instance. The default value is `Enabled`.
RootAccess *string `pulumi:"rootAccess"`
// The associated security groups.
SecurityGroups []string `pulumi:"securityGroups"`
// The VPC subnet ID.
SubnetId *string `pulumi:"subnetId"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider .
TagsAll map[string]string `pulumi:"tagsAll"`
// The URL that you use to connect to the Jupyter notebook that is running in your notebook instance.
Url *string `pulumi:"url"`
// The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
VolumeSize *int `pulumi:"volumeSize"`
}
type NotebookInstanceState struct {
// An array of up to three Git repositories to associate with the notebook instance.
// These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance.
AdditionalCodeRepositories pulumi.StringArrayInput
// The Amazon Resource Name (ARN) assigned by AWS to this notebook instance.
Arn pulumi.StringPtrInput
// The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository.
DefaultCodeRepository pulumi.StringPtrInput
// Set to `Disabled` to disable internet access to notebook. Requires `securityGroups` and `subnetId` to be set. Supported values: `Enabled` (Default) or `Disabled`. If set to `Disabled`, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC.
DirectInternetAccess pulumi.StringPtrInput
// The name of ML compute instance type.
InstanceType pulumi.StringPtrInput
// The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
KmsKeyId pulumi.StringPtrInput
// The name of a lifecycle configuration to associate with the notebook instance.
LifecycleConfigName pulumi.StringPtrInput
// The name of the notebook instance (must be unique).
Name pulumi.StringPtrInput
// The network interface ID that Amazon SageMaker created at the time of creating the instance. Only available when setting `subnetId`.
NetworkInterfaceId pulumi.StringPtrInput
// The platform identifier of the notebook instance runtime environment. This value can be either `notebook-al1-v1` or `notebook-al2-v1`, depending on which version of Amazon Linux you require.
PlatformIdentifier pulumi.StringPtrInput
// The ARN of the IAM role to be used by the notebook instance which allows SageMaker to call other services on your behalf.
RoleArn pulumi.StringPtrInput
// Whether root access is `Enabled` or `Disabled` for users of the notebook instance. The default value is `Enabled`.
RootAccess pulumi.StringPtrInput
// The associated security groups.
SecurityGroups pulumi.StringArrayInput
// The VPC subnet ID.
SubnetId pulumi.StringPtrInput
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// A map of tags assigned to the resource, including those inherited from the provider .
TagsAll pulumi.StringMapInput
// The URL that you use to connect to the Jupyter notebook that is running in your notebook instance.
Url pulumi.StringPtrInput
// The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
VolumeSize pulumi.IntPtrInput
}
func (NotebookInstanceState) ElementType() reflect.Type {
return reflect.TypeOf((*notebookInstanceState)(nil)).Elem()
}
type notebookInstanceArgs struct {
// An array of up to three Git repositories to associate with the notebook instance.
// These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance.
AdditionalCodeRepositories []string `pulumi:"additionalCodeRepositories"`
// The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository.
DefaultCodeRepository *string `pulumi:"defaultCodeRepository"`
// Set to `Disabled` to disable internet access to notebook. Requires `securityGroups` and `subnetId` to be set. Supported values: `Enabled` (Default) or `Disabled`. If set to `Disabled`, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC.
DirectInternetAccess *string `pulumi:"directInternetAccess"`
// The name of ML compute instance type.
InstanceType string `pulumi:"instanceType"`
// The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
KmsKeyId *string `pulumi:"kmsKeyId"`
// The name of a lifecycle configuration to associate with the notebook instance.
LifecycleConfigName *string `pulumi:"lifecycleConfigName"`
// The name of the notebook instance (must be unique).
Name *string `pulumi:"name"`
// The platform identifier of the notebook instance runtime environment. This value can be either `notebook-al1-v1` or `notebook-al2-v1`, depending on which version of Amazon Linux you require.
PlatformIdentifier *string `pulumi:"platformIdentifier"`
// The ARN of the IAM role to be used by the notebook instance which allows SageMaker to call other services on your behalf.
RoleArn string `pulumi:"roleArn"`
// Whether root access is `Enabled` or `Disabled` for users of the notebook instance. The default value is `Enabled`.
RootAccess *string `pulumi:"rootAccess"`
// The associated security groups.
SecurityGroups []string `pulumi:"securityGroups"`
// The VPC subnet ID.
SubnetId *string `pulumi:"subnetId"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
VolumeSize *int `pulumi:"volumeSize"`
}
// The set of arguments for constructing a NotebookInstance resource.
type NotebookInstanceArgs struct {
// An array of up to three Git repositories to associate with the notebook instance.
// These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance.
AdditionalCodeRepositories pulumi.StringArrayInput
// The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in [AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any other Git repository.
DefaultCodeRepository pulumi.StringPtrInput
// Set to `Disabled` to disable internet access to notebook. Requires `securityGroups` and `subnetId` to be set. Supported values: `Enabled` (Default) or `Disabled`. If set to `Disabled`, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC.
DirectInternetAccess pulumi.StringPtrInput
// The name of ML compute instance type.
InstanceType pulumi.StringInput
// The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
KmsKeyId pulumi.StringPtrInput
// The name of a lifecycle configuration to associate with the notebook instance.
LifecycleConfigName pulumi.StringPtrInput
// The name of the notebook instance (must be unique).
Name pulumi.StringPtrInput
// The platform identifier of the notebook instance runtime environment. This value can be either `notebook-al1-v1` or `notebook-al2-v1`, depending on which version of Amazon Linux you require.
PlatformIdentifier pulumi.StringPtrInput
// The ARN of the IAM role to be used by the notebook instance which allows SageMaker to call other services on your behalf.
RoleArn pulumi.StringInput
// Whether root access is `Enabled` or `Disabled` for users of the notebook instance. The default value is `Enabled`.
RootAccess pulumi.StringPtrInput
// The associated security groups.
SecurityGroups pulumi.StringArrayInput
// The VPC subnet ID.
SubnetId pulumi.StringPtrInput
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
VolumeSize pulumi.IntPtrInput
}
func (NotebookInstanceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*notebookInstanceArgs)(nil)).Elem()
}
type NotebookInstanceInput interface {
pulumi.Input
ToNotebookInstanceOutput() NotebookInstanceOutput
ToNotebookInstanceOutputWithContext(ctx context.Context) NotebookInstanceOutput
}
func (*NotebookInstance) ElementType() reflect.Type {
return reflect.TypeOf((**NotebookInstance)(nil)).Elem()
}
func (i *NotebookInstance) ToNotebookInstanceOutput() NotebookInstanceOutput {
return i.ToNotebookInstanceOutputWithContext(context.Background())
}
func (i *NotebookInstance) ToNotebookInstanceOutputWithContext(ctx context.Context) NotebookInstanceOutput {
return pulumi.ToOutputWithContext(ctx, i).(NotebookInstanceOutput)
}
// NotebookInstanceArrayInput is an input type that accepts NotebookInstanceArray and NotebookInstanceArrayOutput values.
// You can construct a concrete instance of `NotebookInstanceArrayInput` via:
//
// NotebookInstanceArray{ NotebookInstanceArgs{...} }
type NotebookInstanceArrayInput interface {
pulumi.Input
ToNotebookInstanceArrayOutput() NotebookInstanceArrayOutput
ToNotebookInstanceArrayOutputWithContext(context.Context) NotebookInstanceArrayOutput
}
type NotebookInstanceArray []NotebookInstanceInput
func (NotebookInstanceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*NotebookInstance)(nil)).Elem()
}
func (i NotebookInstanceArray) ToNotebookInstanceArrayOutput() NotebookInstanceArrayOutput {
return i.ToNotebookInstanceArrayOutputWithContext(context.Background())
}
func (i NotebookInstanceArray) ToNotebookInstanceArrayOutputWithContext(ctx context.Context) NotebookInstanceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(NotebookInstanceArrayOutput)
}
// NotebookInstanceMapInput is an input type that accepts NotebookInstanceMap and NotebookInstanceMapOutput values.
// You can construct a concrete instance of `NotebookInstanceMapInput` via:
//
// NotebookInstanceMap{ "key": NotebookInstanceArgs{...} }
type NotebookInstanceMapInput interface {
pulumi.Input
ToNotebookInstanceMapOutput() NotebookInstanceMapOutput
ToNotebookInstanceMapOutputWithContext(context.Context) NotebookInstanceMapOutput
}
type NotebookInstanceMap map[string]NotebookInstanceInput
func (NotebookInstanceMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*NotebookInstance)(nil)).Elem()
}
func (i NotebookInstanceMap) ToNotebookInstanceMapOutput() NotebookInstanceMapOutput {
return i.ToNotebookInstanceMapOutputWithContext(context.Background())
}
func (i NotebookInstanceMap) ToNotebookInstanceMapOutputWithContext(ctx context.Context) NotebookInstanceMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(NotebookInstanceMapOutput)
}
type NotebookInstanceOutput struct{ *pulumi.OutputState }
func (NotebookInstanceOutput) ElementType() reflect.Type {
return reflect.TypeOf((**NotebookInstance)(nil)).Elem()
}
func (o NotebookInstanceOutput) ToNotebookInstanceOutput() NotebookInstanceOutput {
return o
}
func (o NotebookInstanceOutput) ToNotebookInstanceOutputWithContext(ctx context.Context) NotebookInstanceOutput {
return o
}
type NotebookInstanceArrayOutput struct{ *pulumi.OutputState }
func (NotebookInstanceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*NotebookInstance)(nil)).Elem()
}
func (o NotebookInstanceArrayOutput) ToNotebookInstanceArrayOutput() NotebookInstanceArrayOutput {
return o
}
func (o NotebookInstanceArrayOutput) ToNotebookInstanceArrayOutputWithContext(ctx context.Context) NotebookInstanceArrayOutput {
return o
}
func (o NotebookInstanceArrayOutput) Index(i pulumi.IntInput) NotebookInstanceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NotebookInstance {
return vs[0].([]*NotebookInstance)[vs[1].(int)]
}).(NotebookInstanceOutput)
}
type NotebookInstanceMapOutput struct{ *pulumi.OutputState }
func (NotebookInstanceMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*NotebookInstance)(nil)).Elem()
}
func (o NotebookInstanceMapOutput) ToNotebookInstanceMapOutput() NotebookInstanceMapOutput {
return o
}
func (o NotebookInstanceMapOutput) ToNotebookInstanceMapOutputWithContext(ctx context.Context) NotebookInstanceMapOutput {
return o
}
func (o NotebookInstanceMapOutput) MapIndex(k pulumi.StringInput) NotebookInstanceOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NotebookInstance {
return vs[0].(map[string]*NotebookInstance)[vs[1].(string)]
}).(NotebookInstanceOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*NotebookInstanceInput)(nil)).Elem(), &NotebookInstance{})
pulumi.RegisterInputType(reflect.TypeOf((*NotebookInstanceArrayInput)(nil)).Elem(), NotebookInstanceArray{})
pulumi.RegisterInputType(reflect.TypeOf((*NotebookInstanceMapInput)(nil)).Elem(), NotebookInstanceMap{})
pulumi.RegisterOutputType(NotebookInstanceOutput{})
pulumi.RegisterOutputType(NotebookInstanceArrayOutput{})
pulumi.RegisterOutputType(NotebookInstanceMapOutput{})
}