@pulumi/awsx 1.0.0-beta.1 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ec2/vpc.d.ts +20 -12
- package/ec2/vpc.js +3 -0
- package/ec2/vpc.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/types/input.d.ts +1084 -7
package/ec2/vpc.d.ts
CHANGED
|
@@ -10,39 +10,43 @@ export declare class Vpc extends pulumi.ComponentResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* The EIPs for any NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.
|
|
12
12
|
*/
|
|
13
|
-
readonly eips: pulumi.Output<pulumiAws.ec2.Eip[]
|
|
13
|
+
readonly eips: pulumi.Output<pulumiAws.ec2.Eip[]>;
|
|
14
14
|
/**
|
|
15
15
|
* The Internet Gateway for the VPC.
|
|
16
16
|
*/
|
|
17
|
-
readonly internetGateway: pulumi.Output<pulumiAws.ec2.InternetGateway
|
|
18
|
-
readonly isolatedSubnetIds: pulumi.Output<string[]
|
|
17
|
+
readonly internetGateway: pulumi.Output<pulumiAws.ec2.InternetGateway>;
|
|
18
|
+
readonly isolatedSubnetIds: pulumi.Output<string[]>;
|
|
19
19
|
/**
|
|
20
20
|
* The NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.
|
|
21
21
|
*/
|
|
22
|
-
readonly natGateways: pulumi.Output<pulumiAws.ec2.NatGateway[]
|
|
23
|
-
readonly privateSubnetIds: pulumi.Output<string[]
|
|
24
|
-
readonly publicSubnetIds: pulumi.Output<string[]
|
|
22
|
+
readonly natGateways: pulumi.Output<pulumiAws.ec2.NatGateway[]>;
|
|
23
|
+
readonly privateSubnetIds: pulumi.Output<string[]>;
|
|
24
|
+
readonly publicSubnetIds: pulumi.Output<string[]>;
|
|
25
25
|
/**
|
|
26
26
|
* The Route Table Associations for the VPC.
|
|
27
27
|
*/
|
|
28
|
-
readonly routeTableAssociations: pulumi.Output<pulumiAws.ec2.RouteTableAssociation[]
|
|
28
|
+
readonly routeTableAssociations: pulumi.Output<pulumiAws.ec2.RouteTableAssociation[]>;
|
|
29
29
|
/**
|
|
30
30
|
* The Route Tables for the VPC.
|
|
31
31
|
*/
|
|
32
|
-
readonly routeTables: pulumi.Output<pulumiAws.ec2.RouteTable[]
|
|
32
|
+
readonly routeTables: pulumi.Output<pulumiAws.ec2.RouteTable[]>;
|
|
33
33
|
/**
|
|
34
34
|
* The Routes for the VPC.
|
|
35
35
|
*/
|
|
36
|
-
readonly routes: pulumi.Output<pulumiAws.ec2.Route[]
|
|
36
|
+
readonly routes: pulumi.Output<pulumiAws.ec2.Route[]>;
|
|
37
37
|
/**
|
|
38
38
|
* The VPC's subnets.
|
|
39
39
|
*/
|
|
40
|
-
readonly subnets: pulumi.Output<pulumiAws.ec2.Subnet[]
|
|
40
|
+
readonly subnets: pulumi.Output<pulumiAws.ec2.Subnet[]>;
|
|
41
41
|
/**
|
|
42
42
|
* The VPC.
|
|
43
43
|
*/
|
|
44
|
-
readonly vpc: pulumi.Output<pulumiAws.ec2.Vpc
|
|
45
|
-
|
|
44
|
+
readonly vpc: pulumi.Output<pulumiAws.ec2.Vpc>;
|
|
45
|
+
/**
|
|
46
|
+
* The VPC Endpoints that are enabled
|
|
47
|
+
*/
|
|
48
|
+
readonly vpcEndpoints: pulumi.Output<pulumiAws.ec2.VpcEndpoint[]>;
|
|
49
|
+
readonly vpcId: pulumi.Output<string>;
|
|
46
50
|
/**
|
|
47
51
|
* Create a Vpc resource with the given unique name, arguments, and options.
|
|
48
52
|
*
|
|
@@ -133,4 +137,8 @@ export interface VpcArgs {
|
|
|
133
137
|
tags?: pulumi.Input<{
|
|
134
138
|
[key: string]: pulumi.Input<string>;
|
|
135
139
|
}>;
|
|
140
|
+
/**
|
|
141
|
+
* A list of VPC Endpoints specs to be deployed as part of the VPC
|
|
142
|
+
*/
|
|
143
|
+
vpcEndpointSpecs?: inputs.ec2.VpcEndpointSpecArgs[];
|
|
136
144
|
}
|
package/ec2/vpc.js
CHANGED
|
@@ -35,6 +35,7 @@ class Vpc extends pulumi.ComponentResource {
|
|
|
35
35
|
resourceInputs["numberOfAvailabilityZones"] = args ? args.numberOfAvailabilityZones : undefined;
|
|
36
36
|
resourceInputs["subnetSpecs"] = args ? args.subnetSpecs : undefined;
|
|
37
37
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
38
|
+
resourceInputs["vpcEndpointSpecs"] = args ? args.vpcEndpointSpecs : undefined;
|
|
38
39
|
resourceInputs["eips"] = undefined /*out*/;
|
|
39
40
|
resourceInputs["internetGateway"] = undefined /*out*/;
|
|
40
41
|
resourceInputs["isolatedSubnetIds"] = undefined /*out*/;
|
|
@@ -45,6 +46,7 @@ class Vpc extends pulumi.ComponentResource {
|
|
|
45
46
|
resourceInputs["routes"] = undefined /*out*/;
|
|
46
47
|
resourceInputs["subnets"] = undefined /*out*/;
|
|
47
48
|
resourceInputs["vpc"] = undefined /*out*/;
|
|
49
|
+
resourceInputs["vpcEndpoints"] = undefined /*out*/;
|
|
48
50
|
resourceInputs["vpcId"] = undefined /*out*/;
|
|
49
51
|
}
|
|
50
52
|
else {
|
|
@@ -59,6 +61,7 @@ class Vpc extends pulumi.ComponentResource {
|
|
|
59
61
|
resourceInputs["routes"] = undefined /*out*/;
|
|
60
62
|
resourceInputs["subnets"] = undefined /*out*/;
|
|
61
63
|
resourceInputs["vpc"] = undefined /*out*/;
|
|
64
|
+
resourceInputs["vpcEndpoints"] = undefined /*out*/;
|
|
62
65
|
resourceInputs["vpcId"] = undefined /*out*/;
|
|
63
66
|
}
|
|
64
67
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/ec2/vpc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpc.js","sourceRoot":"","sources":["../../ec2/vpc.ts"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,iFAAiF;;;AAEj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sc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource awsx v1.0.0-beta.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource awsx v1.0.0-beta.4"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/aws": "^5.3.0",
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/awsx",
|
|
3
|
-
"version": "v1.0.0-beta.
|
|
3
|
+
"version": "v1.0.0-beta.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"aws",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource awsx v1.0.0-beta.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource awsx v1.0.0-beta.4"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/aws": "^5.3.0",
|
package/types/input.d.ts
CHANGED
|
@@ -370,6 +370,538 @@ export declare namespace ec2 {
|
|
|
370
370
|
*/
|
|
371
371
|
type: enums.ec2.SubnetType;
|
|
372
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* {{% examples %}}
|
|
375
|
+
* ## Example Usage
|
|
376
|
+
* {{% example %}}
|
|
377
|
+
* ### Basic
|
|
378
|
+
*
|
|
379
|
+
* ```typescript
|
|
380
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
381
|
+
* import * as aws from "@pulumi/aws";
|
|
382
|
+
*
|
|
383
|
+
* const s3 = new aws.ec2.VpcEndpoint("s3", {
|
|
384
|
+
* vpcId: aws_vpc.main.id,
|
|
385
|
+
* serviceName: "com.amazonaws.us-west-2.s3",
|
|
386
|
+
* });
|
|
387
|
+
* ```
|
|
388
|
+
* ```python
|
|
389
|
+
* import pulumi
|
|
390
|
+
* import pulumi_aws as aws
|
|
391
|
+
*
|
|
392
|
+
* s3 = aws.ec2.VpcEndpoint("s3",
|
|
393
|
+
* vpc_id=aws_vpc["main"]["id"],
|
|
394
|
+
* service_name="com.amazonaws.us-west-2.s3")
|
|
395
|
+
* ```
|
|
396
|
+
* ```csharp
|
|
397
|
+
* using Pulumi;
|
|
398
|
+
* using Aws = Pulumi.Aws;
|
|
399
|
+
*
|
|
400
|
+
* class MyStack : Stack
|
|
401
|
+
* {
|
|
402
|
+
* public MyStack()
|
|
403
|
+
* {
|
|
404
|
+
* var s3 = new Aws.Ec2.VpcEndpoint("s3", new Aws.Ec2.VpcEndpointArgs
|
|
405
|
+
* {
|
|
406
|
+
* VpcId = aws_vpc.Main.Id,
|
|
407
|
+
* ServiceName = "com.amazonaws.us-west-2.s3",
|
|
408
|
+
* });
|
|
409
|
+
* }
|
|
410
|
+
*
|
|
411
|
+
* }
|
|
412
|
+
* ```
|
|
413
|
+
* ```go
|
|
414
|
+
* package main
|
|
415
|
+
*
|
|
416
|
+
* import (
|
|
417
|
+
* "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
|
|
418
|
+
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
419
|
+
* )
|
|
420
|
+
*
|
|
421
|
+
* func main() {
|
|
422
|
+
* pulumi.Run(func(ctx *pulumi.Context) error {
|
|
423
|
+
* _, err := ec2.NewVpcEndpoint(ctx, "s3", &ec2.VpcEndpointArgs{
|
|
424
|
+
* VpcId: pulumi.Any(aws_vpc.Main.Id),
|
|
425
|
+
* ServiceName: pulumi.String("com.amazonaws.us-west-2.s3"),
|
|
426
|
+
* })
|
|
427
|
+
* if err != nil {
|
|
428
|
+
* return err
|
|
429
|
+
* }
|
|
430
|
+
* return nil
|
|
431
|
+
* })
|
|
432
|
+
* }
|
|
433
|
+
* ```
|
|
434
|
+
* ```java
|
|
435
|
+
* package generated_program;
|
|
436
|
+
*
|
|
437
|
+
* import java.util.*;
|
|
438
|
+
* import java.io.*;
|
|
439
|
+
* import java.nio.*;
|
|
440
|
+
* import com.pulumi.*;
|
|
441
|
+
*
|
|
442
|
+
* public class App {
|
|
443
|
+
* public static void main(String[] args) {
|
|
444
|
+
* Pulumi.run(App::stack);
|
|
445
|
+
* }
|
|
446
|
+
*
|
|
447
|
+
* public static void stack(Context ctx) {
|
|
448
|
+
* var s3 = new VpcEndpoint("s3", VpcEndpointArgs.builder()
|
|
449
|
+
* .vpcId(aws_vpc.getMain().getId())
|
|
450
|
+
* .serviceName("com.amazonaws.us-west-2.s3")
|
|
451
|
+
* .build());
|
|
452
|
+
*
|
|
453
|
+
* }
|
|
454
|
+
* }
|
|
455
|
+
* ```
|
|
456
|
+
* ```yaml
|
|
457
|
+
* resources:
|
|
458
|
+
* s3:
|
|
459
|
+
* type: aws:ec2:VpcEndpoint
|
|
460
|
+
* properties:
|
|
461
|
+
* vpcId: ${aws_vpc.main.id}
|
|
462
|
+
* serviceName: com.amazonaws.us-west-2.s3
|
|
463
|
+
* ```
|
|
464
|
+
* {{% /example %}}
|
|
465
|
+
* {{% example %}}
|
|
466
|
+
* ### Basic w/ Tags
|
|
467
|
+
*
|
|
468
|
+
* ```typescript
|
|
469
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
470
|
+
* import * as aws from "@pulumi/aws";
|
|
471
|
+
*
|
|
472
|
+
* const s3 = new aws.ec2.VpcEndpoint("s3", {
|
|
473
|
+
* vpcId: aws_vpc.main.id,
|
|
474
|
+
* serviceName: "com.amazonaws.us-west-2.s3",
|
|
475
|
+
* tags: {
|
|
476
|
+
* Environment: "test",
|
|
477
|
+
* },
|
|
478
|
+
* });
|
|
479
|
+
* ```
|
|
480
|
+
* ```python
|
|
481
|
+
* import pulumi
|
|
482
|
+
* import pulumi_aws as aws
|
|
483
|
+
*
|
|
484
|
+
* s3 = aws.ec2.VpcEndpoint("s3",
|
|
485
|
+
* vpc_id=aws_vpc["main"]["id"],
|
|
486
|
+
* service_name="com.amazonaws.us-west-2.s3",
|
|
487
|
+
* tags={
|
|
488
|
+
* "Environment": "test",
|
|
489
|
+
* })
|
|
490
|
+
* ```
|
|
491
|
+
* ```csharp
|
|
492
|
+
* using Pulumi;
|
|
493
|
+
* using Aws = Pulumi.Aws;
|
|
494
|
+
*
|
|
495
|
+
* class MyStack : Stack
|
|
496
|
+
* {
|
|
497
|
+
* public MyStack()
|
|
498
|
+
* {
|
|
499
|
+
* var s3 = new Aws.Ec2.VpcEndpoint("s3", new Aws.Ec2.VpcEndpointArgs
|
|
500
|
+
* {
|
|
501
|
+
* VpcId = aws_vpc.Main.Id,
|
|
502
|
+
* ServiceName = "com.amazonaws.us-west-2.s3",
|
|
503
|
+
* Tags =
|
|
504
|
+
* {
|
|
505
|
+
* { "Environment", "test" },
|
|
506
|
+
* },
|
|
507
|
+
* });
|
|
508
|
+
* }
|
|
509
|
+
*
|
|
510
|
+
* }
|
|
511
|
+
* ```
|
|
512
|
+
* ```go
|
|
513
|
+
* package main
|
|
514
|
+
*
|
|
515
|
+
* import (
|
|
516
|
+
* "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
|
|
517
|
+
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
518
|
+
* )
|
|
519
|
+
*
|
|
520
|
+
* func main() {
|
|
521
|
+
* pulumi.Run(func(ctx *pulumi.Context) error {
|
|
522
|
+
* _, err := ec2.NewVpcEndpoint(ctx, "s3", &ec2.VpcEndpointArgs{
|
|
523
|
+
* VpcId: pulumi.Any(aws_vpc.Main.Id),
|
|
524
|
+
* ServiceName: pulumi.String("com.amazonaws.us-west-2.s3"),
|
|
525
|
+
* Tags: pulumi.StringMap{
|
|
526
|
+
* "Environment": pulumi.String("test"),
|
|
527
|
+
* },
|
|
528
|
+
* })
|
|
529
|
+
* if err != nil {
|
|
530
|
+
* return err
|
|
531
|
+
* }
|
|
532
|
+
* return nil
|
|
533
|
+
* })
|
|
534
|
+
* }
|
|
535
|
+
* ```
|
|
536
|
+
* ```java
|
|
537
|
+
* package generated_program;
|
|
538
|
+
*
|
|
539
|
+
* import java.util.*;
|
|
540
|
+
* import java.io.*;
|
|
541
|
+
* import java.nio.*;
|
|
542
|
+
* import com.pulumi.*;
|
|
543
|
+
*
|
|
544
|
+
* public class App {
|
|
545
|
+
* public static void main(String[] args) {
|
|
546
|
+
* Pulumi.run(App::stack);
|
|
547
|
+
* }
|
|
548
|
+
*
|
|
549
|
+
* public static void stack(Context ctx) {
|
|
550
|
+
* var s3 = new VpcEndpoint("s3", VpcEndpointArgs.builder()
|
|
551
|
+
* .vpcId(aws_vpc.getMain().getId())
|
|
552
|
+
* .serviceName("com.amazonaws.us-west-2.s3")
|
|
553
|
+
* .tags(Map.of("Environment", "test"))
|
|
554
|
+
* .build());
|
|
555
|
+
*
|
|
556
|
+
* }
|
|
557
|
+
* }
|
|
558
|
+
* ```
|
|
559
|
+
* ```yaml
|
|
560
|
+
* resources:
|
|
561
|
+
* s3:
|
|
562
|
+
* type: aws:ec2:VpcEndpoint
|
|
563
|
+
* properties:
|
|
564
|
+
* vpcId: ${aws_vpc.main.id}
|
|
565
|
+
* serviceName: com.amazonaws.us-west-2.s3
|
|
566
|
+
* tags:
|
|
567
|
+
* Environment: test
|
|
568
|
+
* ```
|
|
569
|
+
* {{% /example %}}
|
|
570
|
+
* {{% example %}}
|
|
571
|
+
* ### Interface Endpoint Type
|
|
572
|
+
*
|
|
573
|
+
* ```typescript
|
|
574
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
575
|
+
* import * as aws from "@pulumi/aws";
|
|
576
|
+
*
|
|
577
|
+
* const ec2 = new aws.ec2.VpcEndpoint("ec2", {
|
|
578
|
+
* vpcId: aws_vpc.main.id,
|
|
579
|
+
* serviceName: "com.amazonaws.us-west-2.ec2",
|
|
580
|
+
* vpcEndpointType: "Interface",
|
|
581
|
+
* securityGroupIds: [aws_security_group.sg1.id],
|
|
582
|
+
* privateDnsEnabled: true,
|
|
583
|
+
* });
|
|
584
|
+
* ```
|
|
585
|
+
* ```python
|
|
586
|
+
* import pulumi
|
|
587
|
+
* import pulumi_aws as aws
|
|
588
|
+
*
|
|
589
|
+
* ec2 = aws.ec2.VpcEndpoint("ec2",
|
|
590
|
+
* vpc_id=aws_vpc["main"]["id"],
|
|
591
|
+
* service_name="com.amazonaws.us-west-2.ec2",
|
|
592
|
+
* vpc_endpoint_type="Interface",
|
|
593
|
+
* security_group_ids=[aws_security_group["sg1"]["id"]],
|
|
594
|
+
* private_dns_enabled=True)
|
|
595
|
+
* ```
|
|
596
|
+
* ```csharp
|
|
597
|
+
* using Pulumi;
|
|
598
|
+
* using Aws = Pulumi.Aws;
|
|
599
|
+
*
|
|
600
|
+
* class MyStack : Stack
|
|
601
|
+
* {
|
|
602
|
+
* public MyStack()
|
|
603
|
+
* {
|
|
604
|
+
* var ec2 = new Aws.Ec2.VpcEndpoint("ec2", new Aws.Ec2.VpcEndpointArgs
|
|
605
|
+
* {
|
|
606
|
+
* VpcId = aws_vpc.Main.Id,
|
|
607
|
+
* ServiceName = "com.amazonaws.us-west-2.ec2",
|
|
608
|
+
* VpcEndpointType = "Interface",
|
|
609
|
+
* SecurityGroupIds =
|
|
610
|
+
* {
|
|
611
|
+
* aws_security_group.Sg1.Id,
|
|
612
|
+
* },
|
|
613
|
+
* PrivateDnsEnabled = true,
|
|
614
|
+
* });
|
|
615
|
+
* }
|
|
616
|
+
*
|
|
617
|
+
* }
|
|
618
|
+
* ```
|
|
619
|
+
* ```go
|
|
620
|
+
* package main
|
|
621
|
+
*
|
|
622
|
+
* import (
|
|
623
|
+
* "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
|
|
624
|
+
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
625
|
+
* )
|
|
626
|
+
*
|
|
627
|
+
* func main() {
|
|
628
|
+
* pulumi.Run(func(ctx *pulumi.Context) error {
|
|
629
|
+
* _, err := ec2.NewVpcEndpoint(ctx, "ec2", &ec2.VpcEndpointArgs{
|
|
630
|
+
* VpcId: pulumi.Any(aws_vpc.Main.Id),
|
|
631
|
+
* ServiceName: pulumi.String("com.amazonaws.us-west-2.ec2"),
|
|
632
|
+
* VpcEndpointType: pulumi.String("Interface"),
|
|
633
|
+
* SecurityGroupIds: pulumi.StringArray{
|
|
634
|
+
* pulumi.Any(aws_security_group.Sg1.Id),
|
|
635
|
+
* },
|
|
636
|
+
* PrivateDnsEnabled: pulumi.Bool(true),
|
|
637
|
+
* })
|
|
638
|
+
* if err != nil {
|
|
639
|
+
* return err
|
|
640
|
+
* }
|
|
641
|
+
* return nil
|
|
642
|
+
* })
|
|
643
|
+
* }
|
|
644
|
+
* ```
|
|
645
|
+
* ```java
|
|
646
|
+
* package generated_program;
|
|
647
|
+
*
|
|
648
|
+
* import java.util.*;
|
|
649
|
+
* import java.io.*;
|
|
650
|
+
* import java.nio.*;
|
|
651
|
+
* import com.pulumi.*;
|
|
652
|
+
*
|
|
653
|
+
* public class App {
|
|
654
|
+
* public static void main(String[] args) {
|
|
655
|
+
* Pulumi.run(App::stack);
|
|
656
|
+
* }
|
|
657
|
+
*
|
|
658
|
+
* public static void stack(Context ctx) {
|
|
659
|
+
* var ec2 = new VpcEndpoint("ec2", VpcEndpointArgs.builder()
|
|
660
|
+
* .vpcId(aws_vpc.getMain().getId())
|
|
661
|
+
* .serviceName("com.amazonaws.us-west-2.ec2")
|
|
662
|
+
* .vpcEndpointType("Interface")
|
|
663
|
+
* .securityGroupIds(aws_security_group.getSg1().getId())
|
|
664
|
+
* .privateDnsEnabled(true)
|
|
665
|
+
* .build());
|
|
666
|
+
*
|
|
667
|
+
* }
|
|
668
|
+
* }
|
|
669
|
+
* ```
|
|
670
|
+
* ```yaml
|
|
671
|
+
* resources:
|
|
672
|
+
* ec2:
|
|
673
|
+
* type: aws:ec2:VpcEndpoint
|
|
674
|
+
* properties:
|
|
675
|
+
* vpcId: ${aws_vpc.main.id}
|
|
676
|
+
* serviceName: com.amazonaws.us-west-2.ec2
|
|
677
|
+
* vpcEndpointType: Interface
|
|
678
|
+
* securityGroupIds:
|
|
679
|
+
* - ${aws_security_group.sg1.id}
|
|
680
|
+
* privateDnsEnabled: true
|
|
681
|
+
* ```
|
|
682
|
+
* {{% /example %}}
|
|
683
|
+
* {{% example %}}
|
|
684
|
+
* ### Gateway Load Balancer Endpoint Type
|
|
685
|
+
*
|
|
686
|
+
* ```typescript
|
|
687
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
688
|
+
* import * as aws from "@pulumi/aws";
|
|
689
|
+
*
|
|
690
|
+
* const current = aws.getCallerIdentity({});
|
|
691
|
+
* const exampleVpcEndpointService = new aws.ec2.VpcEndpointService("exampleVpcEndpointService", {
|
|
692
|
+
* acceptanceRequired: false,
|
|
693
|
+
* allowedPrincipals: [current.then(current => current.arn)],
|
|
694
|
+
* gatewayLoadBalancerArns: [aws_lb.example.arn],
|
|
695
|
+
* });
|
|
696
|
+
* const exampleVpcEndpoint = new aws.ec2.VpcEndpoint("exampleVpcEndpoint", {
|
|
697
|
+
* serviceName: exampleVpcEndpointService.serviceName,
|
|
698
|
+
* subnetIds: [aws_subnet.example.id],
|
|
699
|
+
* vpcEndpointType: exampleVpcEndpointService.serviceType,
|
|
700
|
+
* vpcId: aws_vpc.example.id,
|
|
701
|
+
* });
|
|
702
|
+
* ```
|
|
703
|
+
* ```python
|
|
704
|
+
* import pulumi
|
|
705
|
+
* import pulumi_aws as aws
|
|
706
|
+
*
|
|
707
|
+
* current = aws.get_caller_identity()
|
|
708
|
+
* example_vpc_endpoint_service = aws.ec2.VpcEndpointService("exampleVpcEndpointService",
|
|
709
|
+
* acceptance_required=False,
|
|
710
|
+
* allowed_principals=[current.arn],
|
|
711
|
+
* gateway_load_balancer_arns=[aws_lb["example"]["arn"]])
|
|
712
|
+
* example_vpc_endpoint = aws.ec2.VpcEndpoint("exampleVpcEndpoint",
|
|
713
|
+
* service_name=example_vpc_endpoint_service.service_name,
|
|
714
|
+
* subnet_ids=[aws_subnet["example"]["id"]],
|
|
715
|
+
* vpc_endpoint_type=example_vpc_endpoint_service.service_type,
|
|
716
|
+
* vpc_id=aws_vpc["example"]["id"])
|
|
717
|
+
* ```
|
|
718
|
+
* ```csharp
|
|
719
|
+
* using Pulumi;
|
|
720
|
+
* using Aws = Pulumi.Aws;
|
|
721
|
+
*
|
|
722
|
+
* class MyStack : Stack
|
|
723
|
+
* {
|
|
724
|
+
* public MyStack()
|
|
725
|
+
* {
|
|
726
|
+
* var current = Output.Create(Aws.GetCallerIdentity.InvokeAsync());
|
|
727
|
+
* var exampleVpcEndpointService = new Aws.Ec2.VpcEndpointService("exampleVpcEndpointService", new Aws.Ec2.VpcEndpointServiceArgs
|
|
728
|
+
* {
|
|
729
|
+
* AcceptanceRequired = false,
|
|
730
|
+
* AllowedPrincipals =
|
|
731
|
+
* {
|
|
732
|
+
* current.Apply(current => current.Arn),
|
|
733
|
+
* },
|
|
734
|
+
* GatewayLoadBalancerArns =
|
|
735
|
+
* {
|
|
736
|
+
* aws_lb.Example.Arn,
|
|
737
|
+
* },
|
|
738
|
+
* });
|
|
739
|
+
* var exampleVpcEndpoint = new Aws.Ec2.VpcEndpoint("exampleVpcEndpoint", new Aws.Ec2.VpcEndpointArgs
|
|
740
|
+
* {
|
|
741
|
+
* ServiceName = exampleVpcEndpointService.ServiceName,
|
|
742
|
+
* SubnetIds =
|
|
743
|
+
* {
|
|
744
|
+
* aws_subnet.Example.Id,
|
|
745
|
+
* },
|
|
746
|
+
* VpcEndpointType = exampleVpcEndpointService.ServiceType,
|
|
747
|
+
* VpcId = aws_vpc.Example.Id,
|
|
748
|
+
* });
|
|
749
|
+
* }
|
|
750
|
+
*
|
|
751
|
+
* }
|
|
752
|
+
* ```
|
|
753
|
+
* ```go
|
|
754
|
+
* package main
|
|
755
|
+
*
|
|
756
|
+
* import (
|
|
757
|
+
* "github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
|
|
758
|
+
* "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
|
|
759
|
+
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
760
|
+
* )
|
|
761
|
+
*
|
|
762
|
+
* func main() {
|
|
763
|
+
* pulumi.Run(func(ctx *pulumi.Context) error {
|
|
764
|
+
* current, err := aws.GetCallerIdentity(ctx, nil, nil)
|
|
765
|
+
* if err != nil {
|
|
766
|
+
* return err
|
|
767
|
+
* }
|
|
768
|
+
* exampleVpcEndpointService, err := ec2.NewVpcEndpointService(ctx, "exampleVpcEndpointService", &ec2.VpcEndpointServiceArgs{
|
|
769
|
+
* AcceptanceRequired: pulumi.Bool(false),
|
|
770
|
+
* AllowedPrincipals: pulumi.StringArray{
|
|
771
|
+
* pulumi.String(current.Arn),
|
|
772
|
+
* },
|
|
773
|
+
* GatewayLoadBalancerArns: pulumi.StringArray{
|
|
774
|
+
* pulumi.Any(aws_lb.Example.Arn),
|
|
775
|
+
* },
|
|
776
|
+
* })
|
|
777
|
+
* if err != nil {
|
|
778
|
+
* return err
|
|
779
|
+
* }
|
|
780
|
+
* _, err = ec2.NewVpcEndpoint(ctx, "exampleVpcEndpoint", &ec2.VpcEndpointArgs{
|
|
781
|
+
* ServiceName: exampleVpcEndpointService.ServiceName,
|
|
782
|
+
* SubnetIds: pulumi.StringArray{
|
|
783
|
+
* pulumi.Any(aws_subnet.Example.Id),
|
|
784
|
+
* },
|
|
785
|
+
* VpcEndpointType: exampleVpcEndpointService.ServiceType,
|
|
786
|
+
* VpcId: pulumi.Any(aws_vpc.Example.Id),
|
|
787
|
+
* })
|
|
788
|
+
* if err != nil {
|
|
789
|
+
* return err
|
|
790
|
+
* }
|
|
791
|
+
* return nil
|
|
792
|
+
* })
|
|
793
|
+
* }
|
|
794
|
+
* ```
|
|
795
|
+
* ```java
|
|
796
|
+
* package generated_program;
|
|
797
|
+
*
|
|
798
|
+
* import java.util.*;
|
|
799
|
+
* import java.io.*;
|
|
800
|
+
* import java.nio.*;
|
|
801
|
+
* import com.pulumi.*;
|
|
802
|
+
*
|
|
803
|
+
* public class App {
|
|
804
|
+
* public static void main(String[] args) {
|
|
805
|
+
* Pulumi.run(App::stack);
|
|
806
|
+
* }
|
|
807
|
+
*
|
|
808
|
+
* public static void stack(Context ctx) {
|
|
809
|
+
* final var current = Output.of(AwsFunctions.getCallerIdentity());
|
|
810
|
+
*
|
|
811
|
+
* var exampleVpcEndpointService = new VpcEndpointService("exampleVpcEndpointService", VpcEndpointServiceArgs.builder()
|
|
812
|
+
* .acceptanceRequired(false)
|
|
813
|
+
* .allowedPrincipals(current.apply(getCallerIdentityResult -> getCallerIdentityResult.getArn()))
|
|
814
|
+
* .gatewayLoadBalancerArns(aws_lb.getExample().getArn())
|
|
815
|
+
* .build());
|
|
816
|
+
*
|
|
817
|
+
* var exampleVpcEndpoint = new VpcEndpoint("exampleVpcEndpoint", VpcEndpointArgs.builder()
|
|
818
|
+
* .serviceName(exampleVpcEndpointService.getServiceName())
|
|
819
|
+
* .subnetIds(aws_subnet.getExample().getId())
|
|
820
|
+
* .vpcEndpointType(exampleVpcEndpointService.getServiceType())
|
|
821
|
+
* .vpcId(aws_vpc.getExample().getId())
|
|
822
|
+
* .build());
|
|
823
|
+
*
|
|
824
|
+
* }
|
|
825
|
+
* }
|
|
826
|
+
* ```
|
|
827
|
+
* ```yaml
|
|
828
|
+
* resources:
|
|
829
|
+
* exampleVpcEndpointService:
|
|
830
|
+
* type: aws:ec2:VpcEndpointService
|
|
831
|
+
* properties:
|
|
832
|
+
* acceptanceRequired: false
|
|
833
|
+
* allowedPrincipals:
|
|
834
|
+
* - ${current.arn}
|
|
835
|
+
* gatewayLoadBalancerArns:
|
|
836
|
+
* - ${aws_lb.example.arn}
|
|
837
|
+
* exampleVpcEndpoint:
|
|
838
|
+
* type: aws:ec2:VpcEndpoint
|
|
839
|
+
* properties:
|
|
840
|
+
* serviceName: ${exampleVpcEndpointService.serviceName}
|
|
841
|
+
* subnetIds:
|
|
842
|
+
* - ${aws_subnet.example.id}
|
|
843
|
+
* vpcEndpointType: ${exampleVpcEndpointService.serviceType}
|
|
844
|
+
* vpcId: ${aws_vpc.example.id}
|
|
845
|
+
* variables:
|
|
846
|
+
* current:
|
|
847
|
+
* Fn::Invoke:
|
|
848
|
+
* Function: aws:getCallerIdentity
|
|
849
|
+
* Arguments: {}
|
|
850
|
+
* ```
|
|
851
|
+
* {{% /example %}}
|
|
852
|
+
* {{% /examples %}}
|
|
853
|
+
*
|
|
854
|
+
* ## Import
|
|
855
|
+
*
|
|
856
|
+
* VPC Endpoints can be imported using the `vpc endpoint id`, e.g.,
|
|
857
|
+
*
|
|
858
|
+
* ```sh
|
|
859
|
+
* $ pulumi import aws:ec2/vpcEndpoint:VpcEndpoint endpoint1 vpce-3ecf2a57
|
|
860
|
+
* ```
|
|
861
|
+
*
|
|
862
|
+
*
|
|
863
|
+
*/
|
|
864
|
+
interface VpcEndpointSpecArgs {
|
|
865
|
+
/**
|
|
866
|
+
* Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
|
|
867
|
+
*/
|
|
868
|
+
autoAccept?: boolean;
|
|
869
|
+
/**
|
|
870
|
+
* A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All `Gateway` and some `Interface` endpoints support policies - see the [relevant AWS documentation](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html) for more details.
|
|
871
|
+
*/
|
|
872
|
+
policy?: pulumi.Input<string>;
|
|
873
|
+
/**
|
|
874
|
+
* Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Defaults to `false`.
|
|
875
|
+
*/
|
|
876
|
+
privateDnsEnabled?: boolean;
|
|
877
|
+
/**
|
|
878
|
+
* One or more route table IDs. Applicable for endpoints of type `Gateway`.
|
|
879
|
+
*/
|
|
880
|
+
routeTableIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
881
|
+
/**
|
|
882
|
+
* The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type `Interface`.
|
|
883
|
+
* If no security groups are specified, the VPC's [default security group](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html#DefaultSecurityGroup) is associated with the endpoint.
|
|
884
|
+
*/
|
|
885
|
+
securityGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
886
|
+
/**
|
|
887
|
+
* The service name. For AWS services the service name is usually in the form `com.amazonaws.<region>.<service>` (the SageMaker Notebook service is an exception to this rule, the service name is in the form `aws.sagemaker.<region>.notebook`).
|
|
888
|
+
*/
|
|
889
|
+
serviceName: string;
|
|
890
|
+
/**
|
|
891
|
+
* The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type `GatewayLoadBalancer` and `Interface`.
|
|
892
|
+
*/
|
|
893
|
+
subnetIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
894
|
+
/**
|
|
895
|
+
* A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
896
|
+
*/
|
|
897
|
+
tags?: pulumi.Input<{
|
|
898
|
+
[key: string]: pulumi.Input<string>;
|
|
899
|
+
}>;
|
|
900
|
+
/**
|
|
901
|
+
* The VPC endpoint type, `Gateway`, `GatewayLoadBalancer`, or `Interface`. Defaults to `Gateway`.
|
|
902
|
+
*/
|
|
903
|
+
vpcEndpointType?: pulumi.Input<string>;
|
|
904
|
+
}
|
|
373
905
|
}
|
|
374
906
|
export declare namespace ecr {
|
|
375
907
|
/**
|
|
@@ -786,7 +1318,7 @@ export declare namespace lb {
|
|
|
786
1318
|
* // ...
|
|
787
1319
|
* const frontEndListener = new aws.lb.Listener("frontEndListener", {
|
|
788
1320
|
* loadBalancerArn: frontEndLoadBalancer.arn,
|
|
789
|
-
* port:
|
|
1321
|
+
* port: 443,
|
|
790
1322
|
* protocol: "HTTPS",
|
|
791
1323
|
* sslPolicy: "ELBSecurityPolicy-2016-08",
|
|
792
1324
|
* certificateArn: "arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4",
|
|
@@ -889,6 +1421,57 @@ export declare namespace lb {
|
|
|
889
1421
|
* })
|
|
890
1422
|
* }
|
|
891
1423
|
* ```
|
|
1424
|
+
* ```java
|
|
1425
|
+
* package generated_program;
|
|
1426
|
+
*
|
|
1427
|
+
* import java.util.*;
|
|
1428
|
+
* import java.io.*;
|
|
1429
|
+
* import java.nio.*;
|
|
1430
|
+
* import com.pulumi.*;
|
|
1431
|
+
*
|
|
1432
|
+
* public class App {
|
|
1433
|
+
* public static void main(String[] args) {
|
|
1434
|
+
* Pulumi.run(App::stack);
|
|
1435
|
+
* }
|
|
1436
|
+
*
|
|
1437
|
+
* public static void stack(Context ctx) {
|
|
1438
|
+
* var frontEndLoadBalancer = new LoadBalancer("frontEndLoadBalancer");
|
|
1439
|
+
*
|
|
1440
|
+
* var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup");
|
|
1441
|
+
*
|
|
1442
|
+
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
1443
|
+
* .loadBalancerArn(frontEndLoadBalancer.getArn())
|
|
1444
|
+
* .port("443")
|
|
1445
|
+
* .protocol("HTTPS")
|
|
1446
|
+
* .sslPolicy("ELBSecurityPolicy-2016-08")
|
|
1447
|
+
* .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4")
|
|
1448
|
+
* .defaultActions(ListenerDefaultAction.builder()
|
|
1449
|
+
* .type("forward")
|
|
1450
|
+
* .targetGroupArn(frontEndTargetGroup.getArn())
|
|
1451
|
+
* .build())
|
|
1452
|
+
* .build());
|
|
1453
|
+
*
|
|
1454
|
+
* }
|
|
1455
|
+
* }
|
|
1456
|
+
* ```
|
|
1457
|
+
* ```yaml
|
|
1458
|
+
* resources:
|
|
1459
|
+
* frontEndLoadBalancer:
|
|
1460
|
+
* type: aws:lb:LoadBalancer
|
|
1461
|
+
* frontEndTargetGroup:
|
|
1462
|
+
* type: aws:lb:TargetGroup
|
|
1463
|
+
* frontEndListener:
|
|
1464
|
+
* type: aws:lb:Listener
|
|
1465
|
+
* properties:
|
|
1466
|
+
* loadBalancerArn: ${frontEndLoadBalancer.arn}
|
|
1467
|
+
* port: 443
|
|
1468
|
+
* protocol: HTTPS
|
|
1469
|
+
* sslPolicy: ELBSecurityPolicy-2016-08
|
|
1470
|
+
* certificateArn: arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4
|
|
1471
|
+
* defaultActions:
|
|
1472
|
+
* - type: forward
|
|
1473
|
+
* targetGroupArn: ${frontEndTargetGroup.arn}
|
|
1474
|
+
* ```
|
|
892
1475
|
*
|
|
893
1476
|
* To a NLB:
|
|
894
1477
|
*
|
|
@@ -898,7 +1481,7 @@ export declare namespace lb {
|
|
|
898
1481
|
*
|
|
899
1482
|
* const frontEnd = new aws.lb.Listener("frontEnd", {
|
|
900
1483
|
* loadBalancerArn: aws_lb.front_end.arn,
|
|
901
|
-
* port:
|
|
1484
|
+
* port: 443,
|
|
902
1485
|
* protocol: "TLS",
|
|
903
1486
|
* certificateArn: "arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4",
|
|
904
1487
|
* alpnPolicy: "HTTP2Preferred",
|
|
@@ -981,6 +1564,49 @@ export declare namespace lb {
|
|
|
981
1564
|
* })
|
|
982
1565
|
* }
|
|
983
1566
|
* ```
|
|
1567
|
+
* ```java
|
|
1568
|
+
* package generated_program;
|
|
1569
|
+
*
|
|
1570
|
+
* import java.util.*;
|
|
1571
|
+
* import java.io.*;
|
|
1572
|
+
* import java.nio.*;
|
|
1573
|
+
* import com.pulumi.*;
|
|
1574
|
+
*
|
|
1575
|
+
* public class App {
|
|
1576
|
+
* public static void main(String[] args) {
|
|
1577
|
+
* Pulumi.run(App::stack);
|
|
1578
|
+
* }
|
|
1579
|
+
*
|
|
1580
|
+
* public static void stack(Context ctx) {
|
|
1581
|
+
* var frontEnd = new Listener("frontEnd", ListenerArgs.builder()
|
|
1582
|
+
* .loadBalancerArn(aws_lb.getFront_end().getArn())
|
|
1583
|
+
* .port("443")
|
|
1584
|
+
* .protocol("TLS")
|
|
1585
|
+
* .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4")
|
|
1586
|
+
* .alpnPolicy("HTTP2Preferred")
|
|
1587
|
+
* .defaultActions(ListenerDefaultAction.builder()
|
|
1588
|
+
* .type("forward")
|
|
1589
|
+
* .targetGroupArn(aws_lb_target_group.getFront_end().getArn())
|
|
1590
|
+
* .build())
|
|
1591
|
+
* .build());
|
|
1592
|
+
*
|
|
1593
|
+
* }
|
|
1594
|
+
* }
|
|
1595
|
+
* ```
|
|
1596
|
+
* ```yaml
|
|
1597
|
+
* resources:
|
|
1598
|
+
* frontEnd:
|
|
1599
|
+
* type: aws:lb:Listener
|
|
1600
|
+
* properties:
|
|
1601
|
+
* loadBalancerArn: ${aws_lb.front_end.arn}
|
|
1602
|
+
* port: 443
|
|
1603
|
+
* protocol: TLS
|
|
1604
|
+
* certificateArn: arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4
|
|
1605
|
+
* alpnPolicy: HTTP2Preferred
|
|
1606
|
+
* defaultActions:
|
|
1607
|
+
* - type: forward
|
|
1608
|
+
* targetGroupArn: ${aws_lb_target_group.front_end.arn}
|
|
1609
|
+
* ```
|
|
984
1610
|
* {{% /example %}}
|
|
985
1611
|
* {{% example %}}
|
|
986
1612
|
* ### Redirect Action
|
|
@@ -993,7 +1619,7 @@ export declare namespace lb {
|
|
|
993
1619
|
* // ...
|
|
994
1620
|
* const frontEndListener = new aws.lb.Listener("frontEndListener", {
|
|
995
1621
|
* loadBalancerArn: frontEndLoadBalancer.arn,
|
|
996
|
-
* port:
|
|
1622
|
+
* port: 80,
|
|
997
1623
|
* protocol: "HTTP",
|
|
998
1624
|
* defaultActions: [{
|
|
999
1625
|
* type: "redirect",
|
|
@@ -1095,6 +1721,56 @@ export declare namespace lb {
|
|
|
1095
1721
|
* })
|
|
1096
1722
|
* }
|
|
1097
1723
|
* ```
|
|
1724
|
+
* ```java
|
|
1725
|
+
* package generated_program;
|
|
1726
|
+
*
|
|
1727
|
+
* import java.util.*;
|
|
1728
|
+
* import java.io.*;
|
|
1729
|
+
* import java.nio.*;
|
|
1730
|
+
* import com.pulumi.*;
|
|
1731
|
+
*
|
|
1732
|
+
* public class App {
|
|
1733
|
+
* public static void main(String[] args) {
|
|
1734
|
+
* Pulumi.run(App::stack);
|
|
1735
|
+
* }
|
|
1736
|
+
*
|
|
1737
|
+
* public static void stack(Context ctx) {
|
|
1738
|
+
* var frontEndLoadBalancer = new LoadBalancer("frontEndLoadBalancer");
|
|
1739
|
+
*
|
|
1740
|
+
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
1741
|
+
* .loadBalancerArn(frontEndLoadBalancer.getArn())
|
|
1742
|
+
* .port("80")
|
|
1743
|
+
* .protocol("HTTP")
|
|
1744
|
+
* .defaultActions(ListenerDefaultAction.builder()
|
|
1745
|
+
* .type("redirect")
|
|
1746
|
+
* .redirect(ListenerDefaultActionRedirect.builder()
|
|
1747
|
+
* .port("443")
|
|
1748
|
+
* .protocol("HTTPS")
|
|
1749
|
+
* .statusCode("HTTP_301")
|
|
1750
|
+
* .build())
|
|
1751
|
+
* .build())
|
|
1752
|
+
* .build());
|
|
1753
|
+
*
|
|
1754
|
+
* }
|
|
1755
|
+
* }
|
|
1756
|
+
* ```
|
|
1757
|
+
* ```yaml
|
|
1758
|
+
* resources:
|
|
1759
|
+
* frontEndLoadBalancer:
|
|
1760
|
+
* type: aws:lb:LoadBalancer
|
|
1761
|
+
* frontEndListener:
|
|
1762
|
+
* type: aws:lb:Listener
|
|
1763
|
+
* properties:
|
|
1764
|
+
* loadBalancerArn: ${frontEndLoadBalancer.arn}
|
|
1765
|
+
* port: 80
|
|
1766
|
+
* protocol: HTTP
|
|
1767
|
+
* defaultActions:
|
|
1768
|
+
* - type: redirect
|
|
1769
|
+
* redirect:
|
|
1770
|
+
* port: 443
|
|
1771
|
+
* protocol: HTTPS
|
|
1772
|
+
* statusCode: HTTP_301
|
|
1773
|
+
* ```
|
|
1098
1774
|
* {{% /example %}}
|
|
1099
1775
|
* {{% example %}}
|
|
1100
1776
|
* ### Fixed-response Action
|
|
@@ -1107,7 +1783,7 @@ export declare namespace lb {
|
|
|
1107
1783
|
* // ...
|
|
1108
1784
|
* const frontEndListener = new aws.lb.Listener("frontEndListener", {
|
|
1109
1785
|
* loadBalancerArn: frontEndLoadBalancer.arn,
|
|
1110
|
-
* port:
|
|
1786
|
+
* port: 80,
|
|
1111
1787
|
* protocol: "HTTP",
|
|
1112
1788
|
* defaultActions: [{
|
|
1113
1789
|
* type: "fixed-response",
|
|
@@ -1209,6 +1885,56 @@ export declare namespace lb {
|
|
|
1209
1885
|
* })
|
|
1210
1886
|
* }
|
|
1211
1887
|
* ```
|
|
1888
|
+
* ```java
|
|
1889
|
+
* package generated_program;
|
|
1890
|
+
*
|
|
1891
|
+
* import java.util.*;
|
|
1892
|
+
* import java.io.*;
|
|
1893
|
+
* import java.nio.*;
|
|
1894
|
+
* import com.pulumi.*;
|
|
1895
|
+
*
|
|
1896
|
+
* public class App {
|
|
1897
|
+
* public static void main(String[] args) {
|
|
1898
|
+
* Pulumi.run(App::stack);
|
|
1899
|
+
* }
|
|
1900
|
+
*
|
|
1901
|
+
* public static void stack(Context ctx) {
|
|
1902
|
+
* var frontEndLoadBalancer = new LoadBalancer("frontEndLoadBalancer");
|
|
1903
|
+
*
|
|
1904
|
+
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
1905
|
+
* .loadBalancerArn(frontEndLoadBalancer.getArn())
|
|
1906
|
+
* .port("80")
|
|
1907
|
+
* .protocol("HTTP")
|
|
1908
|
+
* .defaultActions(ListenerDefaultAction.builder()
|
|
1909
|
+
* .type("fixed-response")
|
|
1910
|
+
* .fixedResponse(ListenerDefaultActionFixedResponse.builder()
|
|
1911
|
+
* .contentType("text/plain")
|
|
1912
|
+
* .messageBody("Fixed response content")
|
|
1913
|
+
* .statusCode("200")
|
|
1914
|
+
* .build())
|
|
1915
|
+
* .build())
|
|
1916
|
+
* .build());
|
|
1917
|
+
*
|
|
1918
|
+
* }
|
|
1919
|
+
* }
|
|
1920
|
+
* ```
|
|
1921
|
+
* ```yaml
|
|
1922
|
+
* resources:
|
|
1923
|
+
* frontEndLoadBalancer:
|
|
1924
|
+
* type: aws:lb:LoadBalancer
|
|
1925
|
+
* frontEndListener:
|
|
1926
|
+
* type: aws:lb:Listener
|
|
1927
|
+
* properties:
|
|
1928
|
+
* loadBalancerArn: ${frontEndLoadBalancer.arn}
|
|
1929
|
+
* port: 80
|
|
1930
|
+
* protocol: HTTP
|
|
1931
|
+
* defaultActions:
|
|
1932
|
+
* - type: fixed-response
|
|
1933
|
+
* fixedResponse:
|
|
1934
|
+
* contentType: text/plain
|
|
1935
|
+
* messageBody: Fixed response content
|
|
1936
|
+
* statusCode: 200
|
|
1937
|
+
* ```
|
|
1212
1938
|
* {{% /example %}}
|
|
1213
1939
|
* {{% example %}}
|
|
1214
1940
|
* ### Authenticate-cognito Action
|
|
@@ -1229,7 +1955,7 @@ export declare namespace lb {
|
|
|
1229
1955
|
* // ...
|
|
1230
1956
|
* const frontEndListener = new aws.lb.Listener("frontEndListener", {
|
|
1231
1957
|
* loadBalancerArn: frontEndLoadBalancer.arn,
|
|
1232
|
-
* port:
|
|
1958
|
+
* port: 80,
|
|
1233
1959
|
* protocol: "HTTP",
|
|
1234
1960
|
* defaultActions: [
|
|
1235
1961
|
* {
|
|
@@ -1393,6 +2119,79 @@ export declare namespace lb {
|
|
|
1393
2119
|
* })
|
|
1394
2120
|
* }
|
|
1395
2121
|
* ```
|
|
2122
|
+
* ```java
|
|
2123
|
+
* package generated_program;
|
|
2124
|
+
*
|
|
2125
|
+
* import java.util.*;
|
|
2126
|
+
* import java.io.*;
|
|
2127
|
+
* import java.nio.*;
|
|
2128
|
+
* import com.pulumi.*;
|
|
2129
|
+
*
|
|
2130
|
+
* public class App {
|
|
2131
|
+
* public static void main(String[] args) {
|
|
2132
|
+
* Pulumi.run(App::stack);
|
|
2133
|
+
* }
|
|
2134
|
+
*
|
|
2135
|
+
* public static void stack(Context ctx) {
|
|
2136
|
+
* var frontEndLoadBalancer = new LoadBalancer("frontEndLoadBalancer");
|
|
2137
|
+
*
|
|
2138
|
+
* var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup");
|
|
2139
|
+
*
|
|
2140
|
+
* var pool = new UserPool("pool");
|
|
2141
|
+
*
|
|
2142
|
+
* var client = new UserPoolClient("client");
|
|
2143
|
+
*
|
|
2144
|
+
* var domain = new UserPoolDomain("domain");
|
|
2145
|
+
*
|
|
2146
|
+
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
2147
|
+
* .loadBalancerArn(frontEndLoadBalancer.getArn())
|
|
2148
|
+
* .port("80")
|
|
2149
|
+
* .protocol("HTTP")
|
|
2150
|
+
* .defaultActions(
|
|
2151
|
+
* ListenerDefaultAction.builder()
|
|
2152
|
+
* .type("authenticate-cognito")
|
|
2153
|
+
* .authenticateCognito(ListenerDefaultActionAuthenticateCognito.builder()
|
|
2154
|
+
* .userPoolArn(pool.getArn())
|
|
2155
|
+
* .userPoolClientId(client.getId())
|
|
2156
|
+
* .userPoolDomain(domain.getDomain())
|
|
2157
|
+
* .build())
|
|
2158
|
+
* .build(),
|
|
2159
|
+
* ListenerDefaultAction.builder()
|
|
2160
|
+
* .type("forward")
|
|
2161
|
+
* .targetGroupArn(frontEndTargetGroup.getArn())
|
|
2162
|
+
* .build())
|
|
2163
|
+
* .build());
|
|
2164
|
+
*
|
|
2165
|
+
* }
|
|
2166
|
+
* }
|
|
2167
|
+
* ```
|
|
2168
|
+
* ```yaml
|
|
2169
|
+
* resources:
|
|
2170
|
+
* frontEndLoadBalancer:
|
|
2171
|
+
* type: aws:lb:LoadBalancer
|
|
2172
|
+
* frontEndTargetGroup:
|
|
2173
|
+
* type: aws:lb:TargetGroup
|
|
2174
|
+
* pool:
|
|
2175
|
+
* type: aws:cognito:UserPool
|
|
2176
|
+
* client:
|
|
2177
|
+
* type: aws:cognito:UserPoolClient
|
|
2178
|
+
* domain:
|
|
2179
|
+
* type: aws:cognito:UserPoolDomain
|
|
2180
|
+
* frontEndListener:
|
|
2181
|
+
* type: aws:lb:Listener
|
|
2182
|
+
* properties:
|
|
2183
|
+
* loadBalancerArn: ${frontEndLoadBalancer.arn}
|
|
2184
|
+
* port: 80
|
|
2185
|
+
* protocol: HTTP
|
|
2186
|
+
* defaultActions:
|
|
2187
|
+
* - type: authenticate-cognito
|
|
2188
|
+
* authenticateCognito:
|
|
2189
|
+
* userPoolArn: ${pool.arn}
|
|
2190
|
+
* userPoolClientId: ${client.id}
|
|
2191
|
+
* userPoolDomain: ${domain.domain}
|
|
2192
|
+
* - type: forward
|
|
2193
|
+
* targetGroupArn: ${frontEndTargetGroup.arn}
|
|
2194
|
+
* ```
|
|
1396
2195
|
* {{% /example %}}
|
|
1397
2196
|
* {{% example %}}
|
|
1398
2197
|
* ### Authenticate-OIDC Action
|
|
@@ -1407,7 +2206,7 @@ export declare namespace lb {
|
|
|
1407
2206
|
* // ...
|
|
1408
2207
|
* const frontEndListener = new aws.lb.Listener("frontEndListener", {
|
|
1409
2208
|
* loadBalancerArn: frontEndLoadBalancer.arn,
|
|
1410
|
-
* port:
|
|
2209
|
+
* port: 80,
|
|
1411
2210
|
* protocol: "HTTP",
|
|
1412
2211
|
* defaultActions: [
|
|
1413
2212
|
* {
|
|
@@ -1552,6 +2351,73 @@ export declare namespace lb {
|
|
|
1552
2351
|
* })
|
|
1553
2352
|
* }
|
|
1554
2353
|
* ```
|
|
2354
|
+
* ```java
|
|
2355
|
+
* package generated_program;
|
|
2356
|
+
*
|
|
2357
|
+
* import java.util.*;
|
|
2358
|
+
* import java.io.*;
|
|
2359
|
+
* import java.nio.*;
|
|
2360
|
+
* import com.pulumi.*;
|
|
2361
|
+
*
|
|
2362
|
+
* public class App {
|
|
2363
|
+
* public static void main(String[] args) {
|
|
2364
|
+
* Pulumi.run(App::stack);
|
|
2365
|
+
* }
|
|
2366
|
+
*
|
|
2367
|
+
* public static void stack(Context ctx) {
|
|
2368
|
+
* var frontEndLoadBalancer = new LoadBalancer("frontEndLoadBalancer");
|
|
2369
|
+
*
|
|
2370
|
+
* var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup");
|
|
2371
|
+
*
|
|
2372
|
+
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
2373
|
+
* .loadBalancerArn(frontEndLoadBalancer.getArn())
|
|
2374
|
+
* .port("80")
|
|
2375
|
+
* .protocol("HTTP")
|
|
2376
|
+
* .defaultActions(
|
|
2377
|
+
* ListenerDefaultAction.builder()
|
|
2378
|
+
* .type("authenticate-oidc")
|
|
2379
|
+
* .authenticateOidc(ListenerDefaultActionAuthenticateOidc.builder()
|
|
2380
|
+
* .authorizationEndpoint("https://example.com/authorization_endpoint")
|
|
2381
|
+
* .clientId("client_id")
|
|
2382
|
+
* .clientSecret("client_secret")
|
|
2383
|
+
* .issuer("https://example.com")
|
|
2384
|
+
* .tokenEndpoint("https://example.com/token_endpoint")
|
|
2385
|
+
* .userInfoEndpoint("https://example.com/user_info_endpoint")
|
|
2386
|
+
* .build())
|
|
2387
|
+
* .build(),
|
|
2388
|
+
* ListenerDefaultAction.builder()
|
|
2389
|
+
* .type("forward")
|
|
2390
|
+
* .targetGroupArn(frontEndTargetGroup.getArn())
|
|
2391
|
+
* .build())
|
|
2392
|
+
* .build());
|
|
2393
|
+
*
|
|
2394
|
+
* }
|
|
2395
|
+
* }
|
|
2396
|
+
* ```
|
|
2397
|
+
* ```yaml
|
|
2398
|
+
* resources:
|
|
2399
|
+
* frontEndLoadBalancer:
|
|
2400
|
+
* type: aws:lb:LoadBalancer
|
|
2401
|
+
* frontEndTargetGroup:
|
|
2402
|
+
* type: aws:lb:TargetGroup
|
|
2403
|
+
* frontEndListener:
|
|
2404
|
+
* type: aws:lb:Listener
|
|
2405
|
+
* properties:
|
|
2406
|
+
* loadBalancerArn: ${frontEndLoadBalancer.arn}
|
|
2407
|
+
* port: 80
|
|
2408
|
+
* protocol: HTTP
|
|
2409
|
+
* defaultActions:
|
|
2410
|
+
* - type: authenticate-oidc
|
|
2411
|
+
* authenticateOidc:
|
|
2412
|
+
* authorizationEndpoint: https://example.com/authorization_endpoint
|
|
2413
|
+
* clientId: client_id
|
|
2414
|
+
* clientSecret: client_secret
|
|
2415
|
+
* issuer: https://example.com
|
|
2416
|
+
* tokenEndpoint: https://example.com/token_endpoint
|
|
2417
|
+
* userInfoEndpoint: https://example.com/user_info_endpoint
|
|
2418
|
+
* - type: forward
|
|
2419
|
+
* targetGroupArn: ${frontEndTargetGroup.arn}
|
|
2420
|
+
* ```
|
|
1555
2421
|
* {{% /example %}}
|
|
1556
2422
|
* {{% example %}}
|
|
1557
2423
|
* ### Gateway Load Balancer Listener
|
|
@@ -1571,7 +2437,7 @@ export declare namespace lb {
|
|
|
1571
2437
|
* protocol: "GENEVE",
|
|
1572
2438
|
* vpcId: aws_vpc.example.id,
|
|
1573
2439
|
* healthCheck: {
|
|
1574
|
-
* port: 80,
|
|
2440
|
+
* port: "80",
|
|
1575
2441
|
* protocol: "HTTP",
|
|
1576
2442
|
* },
|
|
1577
2443
|
* });
|
|
@@ -1702,6 +2568,73 @@ export declare namespace lb {
|
|
|
1702
2568
|
* })
|
|
1703
2569
|
* }
|
|
1704
2570
|
* ```
|
|
2571
|
+
* ```java
|
|
2572
|
+
* package generated_program;
|
|
2573
|
+
*
|
|
2574
|
+
* import java.util.*;
|
|
2575
|
+
* import java.io.*;
|
|
2576
|
+
* import java.nio.*;
|
|
2577
|
+
* import com.pulumi.*;
|
|
2578
|
+
*
|
|
2579
|
+
* public class App {
|
|
2580
|
+
* public static void main(String[] args) {
|
|
2581
|
+
* Pulumi.run(App::stack);
|
|
2582
|
+
* }
|
|
2583
|
+
*
|
|
2584
|
+
* public static void stack(Context ctx) {
|
|
2585
|
+
* var exampleLoadBalancer = new LoadBalancer("exampleLoadBalancer", LoadBalancerArgs.builder()
|
|
2586
|
+
* .loadBalancerType("gateway")
|
|
2587
|
+
* .subnetMappings(LoadBalancerSubnetMapping.builder()
|
|
2588
|
+
* .subnetId(aws_subnet.getExample().getId())
|
|
2589
|
+
* .build())
|
|
2590
|
+
* .build());
|
|
2591
|
+
*
|
|
2592
|
+
* var exampleTargetGroup = new TargetGroup("exampleTargetGroup", TargetGroupArgs.builder()
|
|
2593
|
+
* .port(6081)
|
|
2594
|
+
* .protocol("GENEVE")
|
|
2595
|
+
* .vpcId(aws_vpc.getExample().getId())
|
|
2596
|
+
* .healthCheck(TargetGroupHealthCheck.builder()
|
|
2597
|
+
* .port(80)
|
|
2598
|
+
* .protocol("HTTP")
|
|
2599
|
+
* .build())
|
|
2600
|
+
* .build());
|
|
2601
|
+
*
|
|
2602
|
+
* var exampleListener = new Listener("exampleListener", ListenerArgs.builder()
|
|
2603
|
+
* .loadBalancerArn(exampleLoadBalancer.getId())
|
|
2604
|
+
* .defaultActions(ListenerDefaultAction.builder()
|
|
2605
|
+
* .targetGroupArn(exampleTargetGroup.getId())
|
|
2606
|
+
* .type("forward")
|
|
2607
|
+
* .build())
|
|
2608
|
+
* .build());
|
|
2609
|
+
*
|
|
2610
|
+
* }
|
|
2611
|
+
* }
|
|
2612
|
+
* ```
|
|
2613
|
+
* ```yaml
|
|
2614
|
+
* resources:
|
|
2615
|
+
* exampleLoadBalancer:
|
|
2616
|
+
* type: aws:lb:LoadBalancer
|
|
2617
|
+
* properties:
|
|
2618
|
+
* loadBalancerType: gateway
|
|
2619
|
+
* subnetMappings:
|
|
2620
|
+
* - subnetId: ${aws_subnet.example.id}
|
|
2621
|
+
* exampleTargetGroup:
|
|
2622
|
+
* type: aws:lb:TargetGroup
|
|
2623
|
+
* properties:
|
|
2624
|
+
* port: 6081
|
|
2625
|
+
* protocol: GENEVE
|
|
2626
|
+
* vpcId: ${aws_vpc.example.id}
|
|
2627
|
+
* healthCheck:
|
|
2628
|
+
* port: 80
|
|
2629
|
+
* protocol: HTTP
|
|
2630
|
+
* exampleListener:
|
|
2631
|
+
* type: aws:lb:Listener
|
|
2632
|
+
* properties:
|
|
2633
|
+
* loadBalancerArn: ${exampleLoadBalancer.id}
|
|
2634
|
+
* defaultActions:
|
|
2635
|
+
* - targetGroupArn: ${exampleTargetGroup.id}
|
|
2636
|
+
* type: forward
|
|
2637
|
+
* ```
|
|
1705
2638
|
* {{% /example %}}
|
|
1706
2639
|
* {{% /examples %}}
|
|
1707
2640
|
*
|
|
@@ -1829,6 +2762,46 @@ export declare namespace lb {
|
|
|
1829
2762
|
* })
|
|
1830
2763
|
* }
|
|
1831
2764
|
* ```
|
|
2765
|
+
* ```java
|
|
2766
|
+
* package generated_program;
|
|
2767
|
+
*
|
|
2768
|
+
* import java.util.*;
|
|
2769
|
+
* import java.io.*;
|
|
2770
|
+
* import java.nio.*;
|
|
2771
|
+
* import com.pulumi.*;
|
|
2772
|
+
*
|
|
2773
|
+
* public class App {
|
|
2774
|
+
* public static void main(String[] args) {
|
|
2775
|
+
* Pulumi.run(App::stack);
|
|
2776
|
+
* }
|
|
2777
|
+
*
|
|
2778
|
+
* public static void stack(Context ctx) {
|
|
2779
|
+
* var main = new Vpc("main", VpcArgs.builder()
|
|
2780
|
+
* .cidrBlock("10.0.0.0/16")
|
|
2781
|
+
* .build());
|
|
2782
|
+
*
|
|
2783
|
+
* var test = new TargetGroup("test", TargetGroupArgs.builder()
|
|
2784
|
+
* .port(80)
|
|
2785
|
+
* .protocol("HTTP")
|
|
2786
|
+
* .vpcId(main.getId())
|
|
2787
|
+
* .build());
|
|
2788
|
+
*
|
|
2789
|
+
* }
|
|
2790
|
+
* }
|
|
2791
|
+
* ```
|
|
2792
|
+
* ```yaml
|
|
2793
|
+
* resources:
|
|
2794
|
+
* test:
|
|
2795
|
+
* type: aws:lb:TargetGroup
|
|
2796
|
+
* properties:
|
|
2797
|
+
* port: 80
|
|
2798
|
+
* protocol: HTTP
|
|
2799
|
+
* vpcId: ${main.id}
|
|
2800
|
+
* main:
|
|
2801
|
+
* type: aws:ec2:Vpc
|
|
2802
|
+
* properties:
|
|
2803
|
+
* cidrBlock: 10.0.0.0/16
|
|
2804
|
+
* ```
|
|
1832
2805
|
* {{% /example %}}
|
|
1833
2806
|
* {{% example %}}
|
|
1834
2807
|
* ### IP Target Group
|
|
@@ -1909,6 +2882,48 @@ export declare namespace lb {
|
|
|
1909
2882
|
* })
|
|
1910
2883
|
* }
|
|
1911
2884
|
* ```
|
|
2885
|
+
* ```java
|
|
2886
|
+
* package generated_program;
|
|
2887
|
+
*
|
|
2888
|
+
* import java.util.*;
|
|
2889
|
+
* import java.io.*;
|
|
2890
|
+
* import java.nio.*;
|
|
2891
|
+
* import com.pulumi.*;
|
|
2892
|
+
*
|
|
2893
|
+
* public class App {
|
|
2894
|
+
* public static void main(String[] args) {
|
|
2895
|
+
* Pulumi.run(App::stack);
|
|
2896
|
+
* }
|
|
2897
|
+
*
|
|
2898
|
+
* public static void stack(Context ctx) {
|
|
2899
|
+
* var main = new Vpc("main", VpcArgs.builder()
|
|
2900
|
+
* .cidrBlock("10.0.0.0/16")
|
|
2901
|
+
* .build());
|
|
2902
|
+
*
|
|
2903
|
+
* var ip_example = new TargetGroup("ip-example", TargetGroupArgs.builder()
|
|
2904
|
+
* .port(80)
|
|
2905
|
+
* .protocol("HTTP")
|
|
2906
|
+
* .targetType("ip")
|
|
2907
|
+
* .vpcId(main.getId())
|
|
2908
|
+
* .build());
|
|
2909
|
+
*
|
|
2910
|
+
* }
|
|
2911
|
+
* }
|
|
2912
|
+
* ```
|
|
2913
|
+
* ```yaml
|
|
2914
|
+
* resources:
|
|
2915
|
+
* ip-example:
|
|
2916
|
+
* type: aws:lb:TargetGroup
|
|
2917
|
+
* properties:
|
|
2918
|
+
* port: 80
|
|
2919
|
+
* protocol: HTTP
|
|
2920
|
+
* targetType: ip
|
|
2921
|
+
* vpcId: ${main.id}
|
|
2922
|
+
* main:
|
|
2923
|
+
* type: aws:ec2:Vpc
|
|
2924
|
+
* properties:
|
|
2925
|
+
* cidrBlock: 10.0.0.0/16
|
|
2926
|
+
* ```
|
|
1912
2927
|
* {{% /example %}}
|
|
1913
2928
|
* {{% example %}}
|
|
1914
2929
|
* ### Lambda Target Group
|
|
@@ -1963,6 +2978,34 @@ export declare namespace lb {
|
|
|
1963
2978
|
* })
|
|
1964
2979
|
* }
|
|
1965
2980
|
* ```
|
|
2981
|
+
* ```java
|
|
2982
|
+
* package generated_program;
|
|
2983
|
+
*
|
|
2984
|
+
* import java.util.*;
|
|
2985
|
+
* import java.io.*;
|
|
2986
|
+
* import java.nio.*;
|
|
2987
|
+
* import com.pulumi.*;
|
|
2988
|
+
*
|
|
2989
|
+
* public class App {
|
|
2990
|
+
* public static void main(String[] args) {
|
|
2991
|
+
* Pulumi.run(App::stack);
|
|
2992
|
+
* }
|
|
2993
|
+
*
|
|
2994
|
+
* public static void stack(Context ctx) {
|
|
2995
|
+
* var lambda_example = new TargetGroup("lambda-example", TargetGroupArgs.builder()
|
|
2996
|
+
* .targetType("lambda")
|
|
2997
|
+
* .build());
|
|
2998
|
+
*
|
|
2999
|
+
* }
|
|
3000
|
+
* }
|
|
3001
|
+
* ```
|
|
3002
|
+
* ```yaml
|
|
3003
|
+
* resources:
|
|
3004
|
+
* lambda-example:
|
|
3005
|
+
* type: aws:lb:TargetGroup
|
|
3006
|
+
* properties:
|
|
3007
|
+
* targetType: lambda
|
|
3008
|
+
* ```
|
|
1966
3009
|
* {{% /example %}}
|
|
1967
3010
|
* {{% example %}}
|
|
1968
3011
|
* ### ALB Target Group
|
|
@@ -2030,6 +3073,40 @@ export declare namespace lb {
|
|
|
2030
3073
|
* })
|
|
2031
3074
|
* }
|
|
2032
3075
|
* ```
|
|
3076
|
+
* ```java
|
|
3077
|
+
* package generated_program;
|
|
3078
|
+
*
|
|
3079
|
+
* import java.util.*;
|
|
3080
|
+
* import java.io.*;
|
|
3081
|
+
* import java.nio.*;
|
|
3082
|
+
* import com.pulumi.*;
|
|
3083
|
+
*
|
|
3084
|
+
* public class App {
|
|
3085
|
+
* public static void main(String[] args) {
|
|
3086
|
+
* Pulumi.run(App::stack);
|
|
3087
|
+
* }
|
|
3088
|
+
*
|
|
3089
|
+
* public static void stack(Context ctx) {
|
|
3090
|
+
* var lambda_example = new TargetGroup("lambda-example", TargetGroupArgs.builder()
|
|
3091
|
+
* .targetType("alb")
|
|
3092
|
+
* .port(80)
|
|
3093
|
+
* .protocol("TCP")
|
|
3094
|
+
* .vpcId(aws_vpc.getMain().getId())
|
|
3095
|
+
* .build());
|
|
3096
|
+
*
|
|
3097
|
+
* }
|
|
3098
|
+
* }
|
|
3099
|
+
* ```
|
|
3100
|
+
* ```yaml
|
|
3101
|
+
* resources:
|
|
3102
|
+
* lambda-example:
|
|
3103
|
+
* type: aws:lb:TargetGroup
|
|
3104
|
+
* properties:
|
|
3105
|
+
* targetType: alb
|
|
3106
|
+
* port: 80
|
|
3107
|
+
* protocol: TCP
|
|
3108
|
+
* vpcId: ${aws_vpc.main.id}
|
|
3109
|
+
* ```
|
|
2033
3110
|
* {{% /example %}}
|
|
2034
3111
|
* {{% /examples %}}
|
|
2035
3112
|
*
|