github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/devicefarm/networkProfile.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package devicefarm 5 6 import ( 7 "context" 8 "reflect" 9 10 "errors" 11 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 12 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 13 ) 14 15 // Provides a resource to manage AWS Device Farm Network Profiles. 16 // ∂ 17 // > **NOTE:** AWS currently has limited regional support for Device Farm (e.g., `us-west-2`). See [AWS Device Farm endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/devicefarm.html) for information on supported regions. 18 // 19 // ## Example Usage 20 // 21 // <!--Start PulumiCodeChooser --> 22 // ```go 23 // package main 24 // 25 // import ( 26 // 27 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/devicefarm" 28 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 29 // 30 // ) 31 // 32 // func main() { 33 // pulumi.Run(func(ctx *pulumi.Context) error { 34 // example, err := devicefarm.NewProject(ctx, "example", &devicefarm.ProjectArgs{ 35 // Name: pulumi.String("example"), 36 // }) 37 // if err != nil { 38 // return err 39 // } 40 // _, err = devicefarm.NewNetworkProfile(ctx, "example", &devicefarm.NetworkProfileArgs{ 41 // Name: pulumi.String("example"), 42 // ProjectArn: example.Arn, 43 // }) 44 // if err != nil { 45 // return err 46 // } 47 // return nil 48 // }) 49 // } 50 // 51 // ``` 52 // <!--End PulumiCodeChooser --> 53 // 54 // ## Import 55 // 56 // Using `pulumi import`, import DeviceFarm Network Profiles using their ARN. For example: 57 // 58 // ```sh 59 // $ pulumi import aws:devicefarm/networkProfile:NetworkProfile example arn:aws:devicefarm:us-west-2:123456789012:networkprofile:4fa784c7-ccb4-4dbf-ba4f-02198320daa1 60 // ``` 61 type NetworkProfile struct { 62 pulumi.CustomResourceState 63 64 // The Amazon Resource Name of this network profile. 65 Arn pulumi.StringOutput `pulumi:"arn"` 66 // The description of the network profile. 67 Description pulumi.StringPtrOutput `pulumi:"description"` 68 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 69 DownlinkBandwidthBits pulumi.IntPtrOutput `pulumi:"downlinkBandwidthBits"` 70 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 71 DownlinkDelayMs pulumi.IntPtrOutput `pulumi:"downlinkDelayMs"` 72 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 73 DownlinkJitterMs pulumi.IntPtrOutput `pulumi:"downlinkJitterMs"` 74 // Proportion of received packets that fail to arrive from `0` to `100` percent. 75 DownlinkLossPercent pulumi.IntPtrOutput `pulumi:"downlinkLossPercent"` 76 // The name for the network profile. 77 Name pulumi.StringOutput `pulumi:"name"` 78 // The ARN of the project for the network profile. 79 ProjectArn pulumi.StringOutput `pulumi:"projectArn"` 80 // 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. 81 Tags pulumi.StringMapOutput `pulumi:"tags"` 82 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 83 // 84 // Deprecated: Please use `tags` instead. 85 TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` 86 // The type of network profile to create. Valid values are listed are `PRIVATE` and `CURATED`. 87 Type pulumi.StringPtrOutput `pulumi:"type"` 88 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 89 UplinkBandwidthBits pulumi.IntPtrOutput `pulumi:"uplinkBandwidthBits"` 90 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 91 UplinkDelayMs pulumi.IntPtrOutput `pulumi:"uplinkDelayMs"` 92 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 93 UplinkJitterMs pulumi.IntPtrOutput `pulumi:"uplinkJitterMs"` 94 // Proportion of received packets that fail to arrive from `0` to `100` percent. 95 UplinkLossPercent pulumi.IntPtrOutput `pulumi:"uplinkLossPercent"` 96 } 97 98 // NewNetworkProfile registers a new resource with the given unique name, arguments, and options. 99 func NewNetworkProfile(ctx *pulumi.Context, 100 name string, args *NetworkProfileArgs, opts ...pulumi.ResourceOption) (*NetworkProfile, error) { 101 if args == nil { 102 return nil, errors.New("missing one or more required arguments") 103 } 104 105 if args.ProjectArn == nil { 106 return nil, errors.New("invalid value for required argument 'ProjectArn'") 107 } 108 opts = internal.PkgResourceDefaultOpts(opts) 109 var resource NetworkProfile 110 err := ctx.RegisterResource("aws:devicefarm/networkProfile:NetworkProfile", name, args, &resource, opts...) 111 if err != nil { 112 return nil, err 113 } 114 return &resource, nil 115 } 116 117 // GetNetworkProfile gets an existing NetworkProfile resource's state with the given name, ID, and optional 118 // state properties that are used to uniquely qualify the lookup (nil if not required). 119 func GetNetworkProfile(ctx *pulumi.Context, 120 name string, id pulumi.IDInput, state *NetworkProfileState, opts ...pulumi.ResourceOption) (*NetworkProfile, error) { 121 var resource NetworkProfile 122 err := ctx.ReadResource("aws:devicefarm/networkProfile:NetworkProfile", name, id, state, &resource, opts...) 123 if err != nil { 124 return nil, err 125 } 126 return &resource, nil 127 } 128 129 // Input properties used for looking up and filtering NetworkProfile resources. 130 type networkProfileState struct { 131 // The Amazon Resource Name of this network profile. 132 Arn *string `pulumi:"arn"` 133 // The description of the network profile. 134 Description *string `pulumi:"description"` 135 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 136 DownlinkBandwidthBits *int `pulumi:"downlinkBandwidthBits"` 137 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 138 DownlinkDelayMs *int `pulumi:"downlinkDelayMs"` 139 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 140 DownlinkJitterMs *int `pulumi:"downlinkJitterMs"` 141 // Proportion of received packets that fail to arrive from `0` to `100` percent. 142 DownlinkLossPercent *int `pulumi:"downlinkLossPercent"` 143 // The name for the network profile. 144 Name *string `pulumi:"name"` 145 // The ARN of the project for the network profile. 146 ProjectArn *string `pulumi:"projectArn"` 147 // 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. 148 Tags map[string]string `pulumi:"tags"` 149 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 150 // 151 // Deprecated: Please use `tags` instead. 152 TagsAll map[string]string `pulumi:"tagsAll"` 153 // The type of network profile to create. Valid values are listed are `PRIVATE` and `CURATED`. 154 Type *string `pulumi:"type"` 155 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 156 UplinkBandwidthBits *int `pulumi:"uplinkBandwidthBits"` 157 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 158 UplinkDelayMs *int `pulumi:"uplinkDelayMs"` 159 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 160 UplinkJitterMs *int `pulumi:"uplinkJitterMs"` 161 // Proportion of received packets that fail to arrive from `0` to `100` percent. 162 UplinkLossPercent *int `pulumi:"uplinkLossPercent"` 163 } 164 165 type NetworkProfileState struct { 166 // The Amazon Resource Name of this network profile. 167 Arn pulumi.StringPtrInput 168 // The description of the network profile. 169 Description pulumi.StringPtrInput 170 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 171 DownlinkBandwidthBits pulumi.IntPtrInput 172 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 173 DownlinkDelayMs pulumi.IntPtrInput 174 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 175 DownlinkJitterMs pulumi.IntPtrInput 176 // Proportion of received packets that fail to arrive from `0` to `100` percent. 177 DownlinkLossPercent pulumi.IntPtrInput 178 // The name for the network profile. 179 Name pulumi.StringPtrInput 180 // The ARN of the project for the network profile. 181 ProjectArn pulumi.StringPtrInput 182 // 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. 183 Tags pulumi.StringMapInput 184 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 185 // 186 // Deprecated: Please use `tags` instead. 187 TagsAll pulumi.StringMapInput 188 // The type of network profile to create. Valid values are listed are `PRIVATE` and `CURATED`. 189 Type pulumi.StringPtrInput 190 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 191 UplinkBandwidthBits pulumi.IntPtrInput 192 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 193 UplinkDelayMs pulumi.IntPtrInput 194 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 195 UplinkJitterMs pulumi.IntPtrInput 196 // Proportion of received packets that fail to arrive from `0` to `100` percent. 197 UplinkLossPercent pulumi.IntPtrInput 198 } 199 200 func (NetworkProfileState) ElementType() reflect.Type { 201 return reflect.TypeOf((*networkProfileState)(nil)).Elem() 202 } 203 204 type networkProfileArgs struct { 205 // The description of the network profile. 206 Description *string `pulumi:"description"` 207 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 208 DownlinkBandwidthBits *int `pulumi:"downlinkBandwidthBits"` 209 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 210 DownlinkDelayMs *int `pulumi:"downlinkDelayMs"` 211 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 212 DownlinkJitterMs *int `pulumi:"downlinkJitterMs"` 213 // Proportion of received packets that fail to arrive from `0` to `100` percent. 214 DownlinkLossPercent *int `pulumi:"downlinkLossPercent"` 215 // The name for the network profile. 216 Name *string `pulumi:"name"` 217 // The ARN of the project for the network profile. 218 ProjectArn string `pulumi:"projectArn"` 219 // 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. 220 Tags map[string]string `pulumi:"tags"` 221 // The type of network profile to create. Valid values are listed are `PRIVATE` and `CURATED`. 222 Type *string `pulumi:"type"` 223 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 224 UplinkBandwidthBits *int `pulumi:"uplinkBandwidthBits"` 225 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 226 UplinkDelayMs *int `pulumi:"uplinkDelayMs"` 227 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 228 UplinkJitterMs *int `pulumi:"uplinkJitterMs"` 229 // Proportion of received packets that fail to arrive from `0` to `100` percent. 230 UplinkLossPercent *int `pulumi:"uplinkLossPercent"` 231 } 232 233 // The set of arguments for constructing a NetworkProfile resource. 234 type NetworkProfileArgs struct { 235 // The description of the network profile. 236 Description pulumi.StringPtrInput 237 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 238 DownlinkBandwidthBits pulumi.IntPtrInput 239 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 240 DownlinkDelayMs pulumi.IntPtrInput 241 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 242 DownlinkJitterMs pulumi.IntPtrInput 243 // Proportion of received packets that fail to arrive from `0` to `100` percent. 244 DownlinkLossPercent pulumi.IntPtrInput 245 // The name for the network profile. 246 Name pulumi.StringPtrInput 247 // The ARN of the project for the network profile. 248 ProjectArn pulumi.StringInput 249 // 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. 250 Tags pulumi.StringMapInput 251 // The type of network profile to create. Valid values are listed are `PRIVATE` and `CURATED`. 252 Type pulumi.StringPtrInput 253 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 254 UplinkBandwidthBits pulumi.IntPtrInput 255 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 256 UplinkDelayMs pulumi.IntPtrInput 257 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 258 UplinkJitterMs pulumi.IntPtrInput 259 // Proportion of received packets that fail to arrive from `0` to `100` percent. 260 UplinkLossPercent pulumi.IntPtrInput 261 } 262 263 func (NetworkProfileArgs) ElementType() reflect.Type { 264 return reflect.TypeOf((*networkProfileArgs)(nil)).Elem() 265 } 266 267 type NetworkProfileInput interface { 268 pulumi.Input 269 270 ToNetworkProfileOutput() NetworkProfileOutput 271 ToNetworkProfileOutputWithContext(ctx context.Context) NetworkProfileOutput 272 } 273 274 func (*NetworkProfile) ElementType() reflect.Type { 275 return reflect.TypeOf((**NetworkProfile)(nil)).Elem() 276 } 277 278 func (i *NetworkProfile) ToNetworkProfileOutput() NetworkProfileOutput { 279 return i.ToNetworkProfileOutputWithContext(context.Background()) 280 } 281 282 func (i *NetworkProfile) ToNetworkProfileOutputWithContext(ctx context.Context) NetworkProfileOutput { 283 return pulumi.ToOutputWithContext(ctx, i).(NetworkProfileOutput) 284 } 285 286 // NetworkProfileArrayInput is an input type that accepts NetworkProfileArray and NetworkProfileArrayOutput values. 287 // You can construct a concrete instance of `NetworkProfileArrayInput` via: 288 // 289 // NetworkProfileArray{ NetworkProfileArgs{...} } 290 type NetworkProfileArrayInput interface { 291 pulumi.Input 292 293 ToNetworkProfileArrayOutput() NetworkProfileArrayOutput 294 ToNetworkProfileArrayOutputWithContext(context.Context) NetworkProfileArrayOutput 295 } 296 297 type NetworkProfileArray []NetworkProfileInput 298 299 func (NetworkProfileArray) ElementType() reflect.Type { 300 return reflect.TypeOf((*[]*NetworkProfile)(nil)).Elem() 301 } 302 303 func (i NetworkProfileArray) ToNetworkProfileArrayOutput() NetworkProfileArrayOutput { 304 return i.ToNetworkProfileArrayOutputWithContext(context.Background()) 305 } 306 307 func (i NetworkProfileArray) ToNetworkProfileArrayOutputWithContext(ctx context.Context) NetworkProfileArrayOutput { 308 return pulumi.ToOutputWithContext(ctx, i).(NetworkProfileArrayOutput) 309 } 310 311 // NetworkProfileMapInput is an input type that accepts NetworkProfileMap and NetworkProfileMapOutput values. 312 // You can construct a concrete instance of `NetworkProfileMapInput` via: 313 // 314 // NetworkProfileMap{ "key": NetworkProfileArgs{...} } 315 type NetworkProfileMapInput interface { 316 pulumi.Input 317 318 ToNetworkProfileMapOutput() NetworkProfileMapOutput 319 ToNetworkProfileMapOutputWithContext(context.Context) NetworkProfileMapOutput 320 } 321 322 type NetworkProfileMap map[string]NetworkProfileInput 323 324 func (NetworkProfileMap) ElementType() reflect.Type { 325 return reflect.TypeOf((*map[string]*NetworkProfile)(nil)).Elem() 326 } 327 328 func (i NetworkProfileMap) ToNetworkProfileMapOutput() NetworkProfileMapOutput { 329 return i.ToNetworkProfileMapOutputWithContext(context.Background()) 330 } 331 332 func (i NetworkProfileMap) ToNetworkProfileMapOutputWithContext(ctx context.Context) NetworkProfileMapOutput { 333 return pulumi.ToOutputWithContext(ctx, i).(NetworkProfileMapOutput) 334 } 335 336 type NetworkProfileOutput struct{ *pulumi.OutputState } 337 338 func (NetworkProfileOutput) ElementType() reflect.Type { 339 return reflect.TypeOf((**NetworkProfile)(nil)).Elem() 340 } 341 342 func (o NetworkProfileOutput) ToNetworkProfileOutput() NetworkProfileOutput { 343 return o 344 } 345 346 func (o NetworkProfileOutput) ToNetworkProfileOutputWithContext(ctx context.Context) NetworkProfileOutput { 347 return o 348 } 349 350 // The Amazon Resource Name of this network profile. 351 func (o NetworkProfileOutput) Arn() pulumi.StringOutput { 352 return o.ApplyT(func(v *NetworkProfile) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) 353 } 354 355 // The description of the network profile. 356 func (o NetworkProfileOutput) Description() pulumi.StringPtrOutput { 357 return o.ApplyT(func(v *NetworkProfile) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) 358 } 359 360 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 361 func (o NetworkProfileOutput) DownlinkBandwidthBits() pulumi.IntPtrOutput { 362 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.DownlinkBandwidthBits }).(pulumi.IntPtrOutput) 363 } 364 365 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 366 func (o NetworkProfileOutput) DownlinkDelayMs() pulumi.IntPtrOutput { 367 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.DownlinkDelayMs }).(pulumi.IntPtrOutput) 368 } 369 370 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 371 func (o NetworkProfileOutput) DownlinkJitterMs() pulumi.IntPtrOutput { 372 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.DownlinkJitterMs }).(pulumi.IntPtrOutput) 373 } 374 375 // Proportion of received packets that fail to arrive from `0` to `100` percent. 376 func (o NetworkProfileOutput) DownlinkLossPercent() pulumi.IntPtrOutput { 377 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.DownlinkLossPercent }).(pulumi.IntPtrOutput) 378 } 379 380 // The name for the network profile. 381 func (o NetworkProfileOutput) Name() pulumi.StringOutput { 382 return o.ApplyT(func(v *NetworkProfile) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) 383 } 384 385 // The ARN of the project for the network profile. 386 func (o NetworkProfileOutput) ProjectArn() pulumi.StringOutput { 387 return o.ApplyT(func(v *NetworkProfile) pulumi.StringOutput { return v.ProjectArn }).(pulumi.StringOutput) 388 } 389 390 // 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. 391 func (o NetworkProfileOutput) Tags() pulumi.StringMapOutput { 392 return o.ApplyT(func(v *NetworkProfile) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) 393 } 394 395 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 396 // 397 // Deprecated: Please use `tags` instead. 398 func (o NetworkProfileOutput) TagsAll() pulumi.StringMapOutput { 399 return o.ApplyT(func(v *NetworkProfile) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) 400 } 401 402 // The type of network profile to create. Valid values are listed are `PRIVATE` and `CURATED`. 403 func (o NetworkProfileOutput) Type() pulumi.StringPtrOutput { 404 return o.ApplyT(func(v *NetworkProfile) pulumi.StringPtrOutput { return v.Type }).(pulumi.StringPtrOutput) 405 } 406 407 // The data throughput rate in bits per second, as an integer from `0` to `104857600`. Default value is `104857600`. 408 func (o NetworkProfileOutput) UplinkBandwidthBits() pulumi.IntPtrOutput { 409 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.UplinkBandwidthBits }).(pulumi.IntPtrOutput) 410 } 411 412 // Delay time for all packets to destination in milliseconds as an integer from `0` to `2000`. 413 func (o NetworkProfileOutput) UplinkDelayMs() pulumi.IntPtrOutput { 414 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.UplinkDelayMs }).(pulumi.IntPtrOutput) 415 } 416 417 // Time variation in the delay of received packets in milliseconds as an integer from `0` to `2000`. 418 func (o NetworkProfileOutput) UplinkJitterMs() pulumi.IntPtrOutput { 419 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.UplinkJitterMs }).(pulumi.IntPtrOutput) 420 } 421 422 // Proportion of received packets that fail to arrive from `0` to `100` percent. 423 func (o NetworkProfileOutput) UplinkLossPercent() pulumi.IntPtrOutput { 424 return o.ApplyT(func(v *NetworkProfile) pulumi.IntPtrOutput { return v.UplinkLossPercent }).(pulumi.IntPtrOutput) 425 } 426 427 type NetworkProfileArrayOutput struct{ *pulumi.OutputState } 428 429 func (NetworkProfileArrayOutput) ElementType() reflect.Type { 430 return reflect.TypeOf((*[]*NetworkProfile)(nil)).Elem() 431 } 432 433 func (o NetworkProfileArrayOutput) ToNetworkProfileArrayOutput() NetworkProfileArrayOutput { 434 return o 435 } 436 437 func (o NetworkProfileArrayOutput) ToNetworkProfileArrayOutputWithContext(ctx context.Context) NetworkProfileArrayOutput { 438 return o 439 } 440 441 func (o NetworkProfileArrayOutput) Index(i pulumi.IntInput) NetworkProfileOutput { 442 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NetworkProfile { 443 return vs[0].([]*NetworkProfile)[vs[1].(int)] 444 }).(NetworkProfileOutput) 445 } 446 447 type NetworkProfileMapOutput struct{ *pulumi.OutputState } 448 449 func (NetworkProfileMapOutput) ElementType() reflect.Type { 450 return reflect.TypeOf((*map[string]*NetworkProfile)(nil)).Elem() 451 } 452 453 func (o NetworkProfileMapOutput) ToNetworkProfileMapOutput() NetworkProfileMapOutput { 454 return o 455 } 456 457 func (o NetworkProfileMapOutput) ToNetworkProfileMapOutputWithContext(ctx context.Context) NetworkProfileMapOutput { 458 return o 459 } 460 461 func (o NetworkProfileMapOutput) MapIndex(k pulumi.StringInput) NetworkProfileOutput { 462 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NetworkProfile { 463 return vs[0].(map[string]*NetworkProfile)[vs[1].(string)] 464 }).(NetworkProfileOutput) 465 } 466 467 func init() { 468 pulumi.RegisterInputType(reflect.TypeOf((*NetworkProfileInput)(nil)).Elem(), &NetworkProfile{}) 469 pulumi.RegisterInputType(reflect.TypeOf((*NetworkProfileArrayInput)(nil)).Elem(), NetworkProfileArray{}) 470 pulumi.RegisterInputType(reflect.TypeOf((*NetworkProfileMapInput)(nil)).Elem(), NetworkProfileMap{}) 471 pulumi.RegisterOutputType(NetworkProfileOutput{}) 472 pulumi.RegisterOutputType(NetworkProfileArrayOutput{}) 473 pulumi.RegisterOutputType(NetworkProfileMapOutput{}) 474 }