@pulumi/awsx 1.0.0-beta.9 → 1.0.1
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/README.md +39 -23
- package/classic/apigateway/api.d.ts +9 -9
- package/classic/apigateway/api.js.map +1 -1
- package/classic/apigateway/lambdaAuthorizer.d.ts +4 -4
- package/classic/apigateway/swagger_json.d.ts +6 -6
- package/classic/autoscaling/autoscaling.d.ts +2 -2
- package/classic/autoscaling/launchConfiguration.d.ts +1 -1
- package/classic/autoscaling/schedule.d.ts +2 -2
- package/classic/autoscaling/stepScaling.d.ts +1 -1
- package/classic/cloudtrail/trail.d.ts +1 -1
- package/classic/cloudwatch/metric.d.ts +4 -4
- package/classic/cloudwatch/widgets_json.d.ts +15 -4
- package/classic/cloudwatch/widgets_simple.d.ts +24 -0
- package/classic/cloudwatch/widgets_simple.js +28 -1
- package/classic/cloudwatch/widgets_simple.js.map +1 -1
- package/classic/ec2/securityGroup.d.ts +1 -1
- package/classic/ec2/securityGroupRule.d.ts +1 -1
- package/classic/ec2/subnet.d.ts +1 -1
- package/classic/ec2/vpc.d.ts +2 -2
- package/classic/ec2/vpcTopology.d.ts +4 -0
- package/classic/ec2/vpcTopology.js.map +1 -1
- package/classic/lb/application.d.ts +1 -1
- package/classic/lb/loadBalancer.d.ts +1 -1
- package/classic/lb/network.d.ts +1 -1
- package/classic/lb/targetGroup.d.ts +1 -1
- package/classic/utils.d.ts +2 -2
- package/cloudtrail/trail.d.ts +1 -1
- package/cloudtrail/trail.js +10 -10
- package/cloudtrail/trail.js.map +1 -1
- package/ec2/defaultVpc.js +10 -10
- package/ec2/defaultVpc.js.map +1 -1
- package/ec2/vpc.d.ts +4 -0
- package/ec2/vpc.js +10 -10
- package/ec2/vpc.js.map +1 -1
- package/ecr/image.js +10 -10
- package/ecr/image.js.map +1 -1
- package/ecr/repository.d.ts +5 -0
- package/ecr/repository.js +11 -10
- package/ecr/repository.js.map +1 -1
- package/ecs/ec2service.d.ts +2 -2
- package/ecs/ec2service.js +10 -13
- package/ecs/ec2service.js.map +1 -1
- package/ecs/ec2taskDefinition.d.ts +4 -1
- package/ecs/ec2taskDefinition.js +10 -10
- package/ecs/ec2taskDefinition.js.map +1 -1
- package/ecs/fargateService.d.ts +4 -0
- package/ecs/fargateService.js +11 -10
- package/ecs/fargateService.js.map +1 -1
- package/ecs/fargateTaskDefinition.d.ts +4 -1
- package/ecs/fargateTaskDefinition.js +10 -10
- package/ecs/fargateTaskDefinition.js.map +1 -1
- package/lb/applicationLoadBalancer.d.ts +8 -0
- package/lb/applicationLoadBalancer.js +12 -10
- package/lb/applicationLoadBalancer.js.map +1 -1
- package/lb/networkLoadBalancer.d.ts +8 -0
- package/lb/networkLoadBalancer.js +12 -10
- package/lb/networkLoadBalancer.js.map +1 -1
- package/lb/targetGroupAttachment.js +10 -10
- package/lb/targetGroupAttachment.js.map +1 -1
- package/package.json +5 -5
- package/package.json.dev +5 -5
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/types/enums/ec2/index.d.ts +2 -2
- package/types/enums/ecr/index.d.ts +1 -1
- package/types/input.d.ts +563 -433
- package/types/input.js.map +1 -1
package/types/input.d.ts
CHANGED
|
@@ -287,7 +287,7 @@ export declare namespace awsx {
|
|
|
287
287
|
*/
|
|
288
288
|
policyArns?: string[];
|
|
289
289
|
/**
|
|
290
|
-
* Key-value mapping of tags for the IAM role.
|
|
290
|
+
* Key-value mapping of tags for the IAM role. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
291
291
|
*/
|
|
292
292
|
tags?: pulumi.Input<{
|
|
293
293
|
[key: string]: pulumi.Input<string>;
|
|
@@ -322,13 +322,14 @@ export declare namespace awsx {
|
|
|
322
322
|
*/
|
|
323
323
|
revokeRulesOnDelete?: pulumi.Input<boolean>;
|
|
324
324
|
/**
|
|
325
|
-
* Map of tags to assign to the resource.
|
|
325
|
+
* 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.
|
|
326
326
|
*/
|
|
327
327
|
tags?: pulumi.Input<{
|
|
328
328
|
[key: string]: pulumi.Input<string>;
|
|
329
329
|
}>;
|
|
330
330
|
/**
|
|
331
331
|
* VPC ID.
|
|
332
|
+
* Defaults to the region's default VPC.
|
|
332
333
|
*/
|
|
333
334
|
vpcId?: pulumi.Input<string>;
|
|
334
335
|
}
|
|
@@ -360,11 +361,17 @@ export declare namespace ec2 {
|
|
|
360
361
|
/**
|
|
361
362
|
* The bitmask for the subnet's CIDR block.
|
|
362
363
|
*/
|
|
363
|
-
cidrMask
|
|
364
|
+
cidrMask?: number;
|
|
364
365
|
/**
|
|
365
366
|
* The subnet's name. Will be templated upon creation.
|
|
366
367
|
*/
|
|
367
368
|
name?: string;
|
|
369
|
+
/**
|
|
370
|
+
* A map of tags to assign to the resource.
|
|
371
|
+
*/
|
|
372
|
+
tags?: pulumi.Input<{
|
|
373
|
+
[key: string]: pulumi.Input<string>;
|
|
374
|
+
}>;
|
|
368
375
|
/**
|
|
369
376
|
* The type of subnet.
|
|
370
377
|
*/
|
|
@@ -394,21 +401,19 @@ export declare namespace ec2 {
|
|
|
394
401
|
* service_name="com.amazonaws.us-west-2.s3")
|
|
395
402
|
* ```
|
|
396
403
|
* ```csharp
|
|
404
|
+
* using System.Collections.Generic;
|
|
397
405
|
* using Pulumi;
|
|
398
406
|
* using Aws = Pulumi.Aws;
|
|
399
407
|
*
|
|
400
|
-
*
|
|
408
|
+
* return await Deployment.RunAsync(() =>
|
|
401
409
|
* {
|
|
402
|
-
*
|
|
410
|
+
* var s3 = new Aws.Ec2.VpcEndpoint("s3", new()
|
|
403
411
|
* {
|
|
404
|
-
*
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
* ServiceName = "com.amazonaws.us-west-2.s3",
|
|
408
|
-
* });
|
|
409
|
-
* }
|
|
412
|
+
* VpcId = aws_vpc.Main.Id,
|
|
413
|
+
* ServiceName = "com.amazonaws.us-west-2.s3",
|
|
414
|
+
* });
|
|
410
415
|
*
|
|
411
|
-
* }
|
|
416
|
+
* });
|
|
412
417
|
* ```
|
|
413
418
|
* ```go
|
|
414
419
|
* package main
|
|
@@ -434,10 +439,17 @@ export declare namespace ec2 {
|
|
|
434
439
|
* ```java
|
|
435
440
|
* package generated_program;
|
|
436
441
|
*
|
|
437
|
-
* import
|
|
438
|
-
* import
|
|
439
|
-
* import
|
|
440
|
-
* import com.pulumi
|
|
442
|
+
* import com.pulumi.Context;
|
|
443
|
+
* import com.pulumi.Pulumi;
|
|
444
|
+
* import com.pulumi.core.Output;
|
|
445
|
+
* import com.pulumi.aws.ec2.VpcEndpoint;
|
|
446
|
+
* import com.pulumi.aws.ec2.VpcEndpointArgs;
|
|
447
|
+
* import java.util.List;
|
|
448
|
+
* import java.util.ArrayList;
|
|
449
|
+
* import java.util.Map;
|
|
450
|
+
* import java.io.File;
|
|
451
|
+
* import java.nio.file.Files;
|
|
452
|
+
* import java.nio.file.Paths;
|
|
441
453
|
*
|
|
442
454
|
* public class App {
|
|
443
455
|
* public static void main(String[] args) {
|
|
@@ -446,11 +458,11 @@ export declare namespace ec2 {
|
|
|
446
458
|
*
|
|
447
459
|
* public static void stack(Context ctx) {
|
|
448
460
|
* var s3 = new VpcEndpoint("s3", VpcEndpointArgs.builder()
|
|
449
|
-
* .vpcId(aws_vpc.
|
|
461
|
+
* .vpcId(aws_vpc.main().id())
|
|
450
462
|
* .serviceName("com.amazonaws.us-west-2.s3")
|
|
451
463
|
* .build());
|
|
452
464
|
*
|
|
453
|
-
*
|
|
465
|
+
* }
|
|
454
466
|
* }
|
|
455
467
|
* ```
|
|
456
468
|
* ```yaml
|
|
@@ -489,25 +501,23 @@ export declare namespace ec2 {
|
|
|
489
501
|
* })
|
|
490
502
|
* ```
|
|
491
503
|
* ```csharp
|
|
504
|
+
* using System.Collections.Generic;
|
|
492
505
|
* using Pulumi;
|
|
493
506
|
* using Aws = Pulumi.Aws;
|
|
494
507
|
*
|
|
495
|
-
*
|
|
508
|
+
* return await Deployment.RunAsync(() =>
|
|
496
509
|
* {
|
|
497
|
-
*
|
|
510
|
+
* var s3 = new Aws.Ec2.VpcEndpoint("s3", new()
|
|
498
511
|
* {
|
|
499
|
-
*
|
|
512
|
+
* VpcId = aws_vpc.Main.Id,
|
|
513
|
+
* ServiceName = "com.amazonaws.us-west-2.s3",
|
|
514
|
+
* Tags =
|
|
500
515
|
* {
|
|
501
|
-
*
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
* {
|
|
505
|
-
* { "Environment", "test" },
|
|
506
|
-
* },
|
|
507
|
-
* });
|
|
508
|
-
* }
|
|
516
|
+
* { "Environment", "test" },
|
|
517
|
+
* },
|
|
518
|
+
* });
|
|
509
519
|
*
|
|
510
|
-
* }
|
|
520
|
+
* });
|
|
511
521
|
* ```
|
|
512
522
|
* ```go
|
|
513
523
|
* package main
|
|
@@ -536,10 +546,17 @@ export declare namespace ec2 {
|
|
|
536
546
|
* ```java
|
|
537
547
|
* package generated_program;
|
|
538
548
|
*
|
|
539
|
-
* import
|
|
540
|
-
* import
|
|
541
|
-
* import
|
|
542
|
-
* import com.pulumi
|
|
549
|
+
* import com.pulumi.Context;
|
|
550
|
+
* import com.pulumi.Pulumi;
|
|
551
|
+
* import com.pulumi.core.Output;
|
|
552
|
+
* import com.pulumi.aws.ec2.VpcEndpoint;
|
|
553
|
+
* import com.pulumi.aws.ec2.VpcEndpointArgs;
|
|
554
|
+
* import java.util.List;
|
|
555
|
+
* import java.util.ArrayList;
|
|
556
|
+
* import java.util.Map;
|
|
557
|
+
* import java.io.File;
|
|
558
|
+
* import java.nio.file.Files;
|
|
559
|
+
* import java.nio.file.Paths;
|
|
543
560
|
*
|
|
544
561
|
* public class App {
|
|
545
562
|
* public static void main(String[] args) {
|
|
@@ -548,12 +565,12 @@ export declare namespace ec2 {
|
|
|
548
565
|
*
|
|
549
566
|
* public static void stack(Context ctx) {
|
|
550
567
|
* var s3 = new VpcEndpoint("s3", VpcEndpointArgs.builder()
|
|
551
|
-
* .vpcId(aws_vpc.
|
|
568
|
+
* .vpcId(aws_vpc.main().id())
|
|
552
569
|
* .serviceName("com.amazonaws.us-west-2.s3")
|
|
553
570
|
* .tags(Map.of("Environment", "test"))
|
|
554
571
|
* .build());
|
|
555
572
|
*
|
|
556
|
-
*
|
|
573
|
+
* }
|
|
557
574
|
* }
|
|
558
575
|
* ```
|
|
559
576
|
* ```yaml
|
|
@@ -594,27 +611,25 @@ export declare namespace ec2 {
|
|
|
594
611
|
* private_dns_enabled=True)
|
|
595
612
|
* ```
|
|
596
613
|
* ```csharp
|
|
614
|
+
* using System.Collections.Generic;
|
|
597
615
|
* using Pulumi;
|
|
598
616
|
* using Aws = Pulumi.Aws;
|
|
599
617
|
*
|
|
600
|
-
*
|
|
618
|
+
* return await Deployment.RunAsync(() =>
|
|
601
619
|
* {
|
|
602
|
-
*
|
|
620
|
+
* var ec2 = new Aws.Ec2.VpcEndpoint("ec2", new()
|
|
603
621
|
* {
|
|
604
|
-
*
|
|
622
|
+
* VpcId = aws_vpc.Main.Id,
|
|
623
|
+
* ServiceName = "com.amazonaws.us-west-2.ec2",
|
|
624
|
+
* VpcEndpointType = "Interface",
|
|
625
|
+
* SecurityGroupIds = new[]
|
|
605
626
|
* {
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
*
|
|
609
|
-
*
|
|
610
|
-
* {
|
|
611
|
-
* aws_security_group.Sg1.Id,
|
|
612
|
-
* },
|
|
613
|
-
* PrivateDnsEnabled = true,
|
|
614
|
-
* });
|
|
615
|
-
* }
|
|
627
|
+
* aws_security_group.Sg1.Id,
|
|
628
|
+
* },
|
|
629
|
+
* PrivateDnsEnabled = true,
|
|
630
|
+
* });
|
|
616
631
|
*
|
|
617
|
-
* }
|
|
632
|
+
* });
|
|
618
633
|
* ```
|
|
619
634
|
* ```go
|
|
620
635
|
* package main
|
|
@@ -645,10 +660,17 @@ export declare namespace ec2 {
|
|
|
645
660
|
* ```java
|
|
646
661
|
* package generated_program;
|
|
647
662
|
*
|
|
648
|
-
* import
|
|
649
|
-
* import
|
|
650
|
-
* import
|
|
651
|
-
* import com.pulumi
|
|
663
|
+
* import com.pulumi.Context;
|
|
664
|
+
* import com.pulumi.Pulumi;
|
|
665
|
+
* import com.pulumi.core.Output;
|
|
666
|
+
* import com.pulumi.aws.ec2.VpcEndpoint;
|
|
667
|
+
* import com.pulumi.aws.ec2.VpcEndpointArgs;
|
|
668
|
+
* import java.util.List;
|
|
669
|
+
* import java.util.ArrayList;
|
|
670
|
+
* import java.util.Map;
|
|
671
|
+
* import java.io.File;
|
|
672
|
+
* import java.nio.file.Files;
|
|
673
|
+
* import java.nio.file.Paths;
|
|
652
674
|
*
|
|
653
675
|
* public class App {
|
|
654
676
|
* public static void main(String[] args) {
|
|
@@ -657,14 +679,14 @@ export declare namespace ec2 {
|
|
|
657
679
|
*
|
|
658
680
|
* public static void stack(Context ctx) {
|
|
659
681
|
* var ec2 = new VpcEndpoint("ec2", VpcEndpointArgs.builder()
|
|
660
|
-
* .vpcId(aws_vpc.
|
|
682
|
+
* .vpcId(aws_vpc.main().id())
|
|
661
683
|
* .serviceName("com.amazonaws.us-west-2.ec2")
|
|
662
684
|
* .vpcEndpointType("Interface")
|
|
663
|
-
* .securityGroupIds(aws_security_group.
|
|
685
|
+
* .securityGroupIds(aws_security_group.sg1().id())
|
|
664
686
|
* .privateDnsEnabled(true)
|
|
665
687
|
* .build());
|
|
666
688
|
*
|
|
667
|
-
*
|
|
689
|
+
* }
|
|
668
690
|
* }
|
|
669
691
|
* ```
|
|
670
692
|
* ```yaml
|
|
@@ -716,39 +738,39 @@ export declare namespace ec2 {
|
|
|
716
738
|
* vpc_id=aws_vpc["example"]["id"])
|
|
717
739
|
* ```
|
|
718
740
|
* ```csharp
|
|
741
|
+
* using System.Collections.Generic;
|
|
719
742
|
* using Pulumi;
|
|
720
743
|
* using Aws = Pulumi.Aws;
|
|
721
744
|
*
|
|
722
|
-
*
|
|
745
|
+
* return await Deployment.RunAsync(() =>
|
|
723
746
|
* {
|
|
724
|
-
*
|
|
747
|
+
* var current = Aws.GetCallerIdentity.Invoke();
|
|
748
|
+
*
|
|
749
|
+
* var exampleVpcEndpointService = new Aws.Ec2.VpcEndpointService("exampleVpcEndpointService", new()
|
|
725
750
|
* {
|
|
726
|
-
*
|
|
727
|
-
*
|
|
751
|
+
* AcceptanceRequired = false,
|
|
752
|
+
* AllowedPrincipals = new[]
|
|
728
753
|
* {
|
|
729
|
-
*
|
|
730
|
-
*
|
|
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
|
|
754
|
+
* current.Apply(getCallerIdentityResult => getCallerIdentityResult.Arn),
|
|
755
|
+
* },
|
|
756
|
+
* GatewayLoadBalancerArns = new[]
|
|
740
757
|
* {
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
*
|
|
744
|
-
* aws_subnet.Example.Id,
|
|
745
|
-
* },
|
|
746
|
-
* VpcEndpointType = exampleVpcEndpointService.ServiceType,
|
|
747
|
-
* VpcId = aws_vpc.Example.Id,
|
|
748
|
-
* });
|
|
749
|
-
* }
|
|
758
|
+
* aws_lb.Example.Arn,
|
|
759
|
+
* },
|
|
760
|
+
* });
|
|
750
761
|
*
|
|
751
|
-
*
|
|
762
|
+
* var exampleVpcEndpoint = new Aws.Ec2.VpcEndpoint("exampleVpcEndpoint", new()
|
|
763
|
+
* {
|
|
764
|
+
* ServiceName = exampleVpcEndpointService.ServiceName,
|
|
765
|
+
* SubnetIds = new[]
|
|
766
|
+
* {
|
|
767
|
+
* aws_subnet.Example.Id,
|
|
768
|
+
* },
|
|
769
|
+
* VpcEndpointType = exampleVpcEndpointService.ServiceType,
|
|
770
|
+
* VpcId = aws_vpc.Example.Id,
|
|
771
|
+
* });
|
|
772
|
+
*
|
|
773
|
+
* });
|
|
752
774
|
* ```
|
|
753
775
|
* ```go
|
|
754
776
|
* package main
|
|
@@ -795,10 +817,20 @@ export declare namespace ec2 {
|
|
|
795
817
|
* ```java
|
|
796
818
|
* package generated_program;
|
|
797
819
|
*
|
|
798
|
-
* import
|
|
799
|
-
* import
|
|
800
|
-
* import
|
|
801
|
-
* import com.pulumi
|
|
820
|
+
* import com.pulumi.Context;
|
|
821
|
+
* import com.pulumi.Pulumi;
|
|
822
|
+
* import com.pulumi.core.Output;
|
|
823
|
+
* import com.pulumi.aws.AwsFunctions;
|
|
824
|
+
* import com.pulumi.aws.ec2.VpcEndpointService;
|
|
825
|
+
* import com.pulumi.aws.ec2.VpcEndpointServiceArgs;
|
|
826
|
+
* import com.pulumi.aws.ec2.VpcEndpoint;
|
|
827
|
+
* import com.pulumi.aws.ec2.VpcEndpointArgs;
|
|
828
|
+
* import java.util.List;
|
|
829
|
+
* import java.util.ArrayList;
|
|
830
|
+
* import java.util.Map;
|
|
831
|
+
* import java.io.File;
|
|
832
|
+
* import java.nio.file.Files;
|
|
833
|
+
* import java.nio.file.Paths;
|
|
802
834
|
*
|
|
803
835
|
* public class App {
|
|
804
836
|
* public static void main(String[] args) {
|
|
@@ -806,22 +838,22 @@ export declare namespace ec2 {
|
|
|
806
838
|
* }
|
|
807
839
|
*
|
|
808
840
|
* public static void stack(Context ctx) {
|
|
809
|
-
* final var current =
|
|
841
|
+
* final var current = AwsFunctions.getCallerIdentity();
|
|
810
842
|
*
|
|
811
843
|
* var exampleVpcEndpointService = new VpcEndpointService("exampleVpcEndpointService", VpcEndpointServiceArgs.builder()
|
|
812
844
|
* .acceptanceRequired(false)
|
|
813
|
-
* .allowedPrincipals(current.
|
|
814
|
-
* .gatewayLoadBalancerArns(aws_lb.
|
|
845
|
+
* .allowedPrincipals(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn()))
|
|
846
|
+
* .gatewayLoadBalancerArns(aws_lb.example().arn())
|
|
815
847
|
* .build());
|
|
816
848
|
*
|
|
817
849
|
* var exampleVpcEndpoint = new VpcEndpoint("exampleVpcEndpoint", VpcEndpointArgs.builder()
|
|
818
|
-
* .serviceName(exampleVpcEndpointService.
|
|
819
|
-
* .subnetIds(aws_subnet.
|
|
820
|
-
* .vpcEndpointType(exampleVpcEndpointService.
|
|
821
|
-
* .vpcId(aws_vpc.
|
|
850
|
+
* .serviceName(exampleVpcEndpointService.serviceName())
|
|
851
|
+
* .subnetIds(aws_subnet.example().id())
|
|
852
|
+
* .vpcEndpointType(exampleVpcEndpointService.serviceType())
|
|
853
|
+
* .vpcId(aws_vpc.example().id())
|
|
822
854
|
* .build());
|
|
823
855
|
*
|
|
824
|
-
*
|
|
856
|
+
* }
|
|
825
857
|
* }
|
|
826
858
|
* ```
|
|
827
859
|
* ```yaml
|
|
@@ -866,6 +898,14 @@ export declare namespace ec2 {
|
|
|
866
898
|
* Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
|
|
867
899
|
*/
|
|
868
900
|
autoAccept?: boolean;
|
|
901
|
+
/**
|
|
902
|
+
* The DNS options for the endpoint. See dns_options below.
|
|
903
|
+
*/
|
|
904
|
+
dnsOptions?: pulumi.Input<pulumiAws.types.input.ec2.VpcEndpointDnsOptions>;
|
|
905
|
+
/**
|
|
906
|
+
* The IP address type for the endpoint. Valid values are `ipv4`, `dualstack`, and `ipv6`.
|
|
907
|
+
*/
|
|
908
|
+
ipAddressType?: pulumi.Input<string>;
|
|
869
909
|
/**
|
|
870
910
|
* 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
911
|
*/
|
|
@@ -1020,9 +1060,12 @@ export declare namespace ecs {
|
|
|
1020
1060
|
* Configuration block for runtime_platform that containers in your task may use.
|
|
1021
1061
|
*/
|
|
1022
1062
|
runtimePlatform?: pulumi.Input<pulumiAws.types.input.ecs.TaskDefinitionRuntimePlatform>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is `false`.
|
|
1065
|
+
*/
|
|
1023
1066
|
skipDestroy?: pulumi.Input<boolean>;
|
|
1024
1067
|
/**
|
|
1025
|
-
* Key-value map of resource tags.
|
|
1068
|
+
* Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
1026
1069
|
*/
|
|
1027
1070
|
tags?: pulumi.Input<{
|
|
1028
1071
|
[key: string]: pulumi.Input<string>;
|
|
@@ -1109,9 +1152,12 @@ export declare namespace ecs {
|
|
|
1109
1152
|
* Configuration block for runtime_platform that containers in your task may use.
|
|
1110
1153
|
*/
|
|
1111
1154
|
runtimePlatform?: pulumi.Input<pulumiAws.types.input.ecs.TaskDefinitionRuntimePlatform>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is `false`.
|
|
1157
|
+
*/
|
|
1112
1158
|
skipDestroy?: pulumi.Input<boolean>;
|
|
1113
1159
|
/**
|
|
1114
|
-
* Key-value map of resource tags.
|
|
1160
|
+
* Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
1115
1161
|
*/
|
|
1116
1162
|
tags?: pulumi.Input<{
|
|
1117
1163
|
[key: string]: pulumi.Input<string>;
|
|
@@ -1348,40 +1394,36 @@ export declare namespace lb {
|
|
|
1348
1394
|
* )])
|
|
1349
1395
|
* ```
|
|
1350
1396
|
* ```csharp
|
|
1397
|
+
* using System.Collections.Generic;
|
|
1351
1398
|
* using Pulumi;
|
|
1352
1399
|
* using Aws = Pulumi.Aws;
|
|
1353
1400
|
*
|
|
1354
|
-
*
|
|
1401
|
+
* return await Deployment.RunAsync(() =>
|
|
1355
1402
|
* {
|
|
1356
|
-
*
|
|
1403
|
+
* var frontEndLoadBalancer = new Aws.LB.LoadBalancer("frontEndLoadBalancer");
|
|
1404
|
+
*
|
|
1405
|
+
* // ...
|
|
1406
|
+
* var frontEndTargetGroup = new Aws.LB.TargetGroup("frontEndTargetGroup");
|
|
1407
|
+
*
|
|
1408
|
+
* // ...
|
|
1409
|
+
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new()
|
|
1357
1410
|
* {
|
|
1358
|
-
*
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
* });
|
|
1365
|
-
* // ...
|
|
1366
|
-
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new Aws.LB.ListenerArgs
|
|
1411
|
+
* LoadBalancerArn = frontEndLoadBalancer.Arn,
|
|
1412
|
+
* Port = 443,
|
|
1413
|
+
* Protocol = "HTTPS",
|
|
1414
|
+
* SslPolicy = "ELBSecurityPolicy-2016-08",
|
|
1415
|
+
* CertificateArn = "arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4",
|
|
1416
|
+
* DefaultActions = new[]
|
|
1367
1417
|
* {
|
|
1368
|
-
*
|
|
1369
|
-
* Port = 443,
|
|
1370
|
-
* Protocol = "HTTPS",
|
|
1371
|
-
* SslPolicy = "ELBSecurityPolicy-2016-08",
|
|
1372
|
-
* CertificateArn = "arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4",
|
|
1373
|
-
* DefaultActions =
|
|
1418
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
1374
1419
|
* {
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1377
|
-
* Type = "forward",
|
|
1378
|
-
* TargetGroupArn = frontEndTargetGroup.Arn,
|
|
1379
|
-
* },
|
|
1420
|
+
* Type = "forward",
|
|
1421
|
+
* TargetGroupArn = frontEndTargetGroup.Arn,
|
|
1380
1422
|
* },
|
|
1381
|
-
* }
|
|
1382
|
-
* }
|
|
1423
|
+
* },
|
|
1424
|
+
* });
|
|
1383
1425
|
*
|
|
1384
|
-
* }
|
|
1426
|
+
* });
|
|
1385
1427
|
* ```
|
|
1386
1428
|
* ```go
|
|
1387
1429
|
* package main
|
|
@@ -1424,10 +1466,20 @@ export declare namespace lb {
|
|
|
1424
1466
|
* ```java
|
|
1425
1467
|
* package generated_program;
|
|
1426
1468
|
*
|
|
1427
|
-
* import
|
|
1428
|
-
* import
|
|
1429
|
-
* import
|
|
1430
|
-
* import com.pulumi
|
|
1469
|
+
* import com.pulumi.Context;
|
|
1470
|
+
* import com.pulumi.Pulumi;
|
|
1471
|
+
* import com.pulumi.core.Output;
|
|
1472
|
+
* import com.pulumi.aws.lb.LoadBalancer;
|
|
1473
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
1474
|
+
* import com.pulumi.aws.lb.Listener;
|
|
1475
|
+
* import com.pulumi.aws.lb.ListenerArgs;
|
|
1476
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionArgs;
|
|
1477
|
+
* import java.util.List;
|
|
1478
|
+
* import java.util.ArrayList;
|
|
1479
|
+
* import java.util.Map;
|
|
1480
|
+
* import java.io.File;
|
|
1481
|
+
* import java.nio.file.Files;
|
|
1482
|
+
* import java.nio.file.Paths;
|
|
1431
1483
|
*
|
|
1432
1484
|
* public class App {
|
|
1433
1485
|
* public static void main(String[] args) {
|
|
@@ -1440,18 +1492,18 @@ export declare namespace lb {
|
|
|
1440
1492
|
* var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup");
|
|
1441
1493
|
*
|
|
1442
1494
|
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
1443
|
-
* .loadBalancerArn(frontEndLoadBalancer.
|
|
1495
|
+
* .loadBalancerArn(frontEndLoadBalancer.arn())
|
|
1444
1496
|
* .port("443")
|
|
1445
1497
|
* .protocol("HTTPS")
|
|
1446
1498
|
* .sslPolicy("ELBSecurityPolicy-2016-08")
|
|
1447
1499
|
* .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4")
|
|
1448
|
-
* .defaultActions(
|
|
1500
|
+
* .defaultActions(ListenerDefaultActionArgs.builder()
|
|
1449
1501
|
* .type("forward")
|
|
1450
|
-
* .targetGroupArn(frontEndTargetGroup.
|
|
1502
|
+
* .targetGroupArn(frontEndTargetGroup.arn())
|
|
1451
1503
|
* .build())
|
|
1452
1504
|
* .build());
|
|
1453
1505
|
*
|
|
1454
|
-
*
|
|
1506
|
+
* }
|
|
1455
1507
|
* }
|
|
1456
1508
|
* ```
|
|
1457
1509
|
* ```yaml
|
|
@@ -1507,32 +1559,30 @@ export declare namespace lb {
|
|
|
1507
1559
|
* )])
|
|
1508
1560
|
* ```
|
|
1509
1561
|
* ```csharp
|
|
1562
|
+
* using System.Collections.Generic;
|
|
1510
1563
|
* using Pulumi;
|
|
1511
1564
|
* using Aws = Pulumi.Aws;
|
|
1512
1565
|
*
|
|
1513
|
-
*
|
|
1566
|
+
* return await Deployment.RunAsync(() =>
|
|
1514
1567
|
* {
|
|
1515
|
-
*
|
|
1568
|
+
* var frontEnd = new Aws.LB.Listener("frontEnd", new()
|
|
1516
1569
|
* {
|
|
1517
|
-
*
|
|
1570
|
+
* LoadBalancerArn = aws_lb.Front_end.Arn,
|
|
1571
|
+
* Port = 443,
|
|
1572
|
+
* Protocol = "TLS",
|
|
1573
|
+
* CertificateArn = "arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4",
|
|
1574
|
+
* AlpnPolicy = "HTTP2Preferred",
|
|
1575
|
+
* DefaultActions = new[]
|
|
1518
1576
|
* {
|
|
1519
|
-
*
|
|
1520
|
-
* Port = 443,
|
|
1521
|
-
* Protocol = "TLS",
|
|
1522
|
-
* CertificateArn = "arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4",
|
|
1523
|
-
* AlpnPolicy = "HTTP2Preferred",
|
|
1524
|
-
* DefaultActions =
|
|
1577
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
1525
1578
|
* {
|
|
1526
|
-
*
|
|
1527
|
-
*
|
|
1528
|
-
* Type = "forward",
|
|
1529
|
-
* TargetGroupArn = aws_lb_target_group.Front_end.Arn,
|
|
1530
|
-
* },
|
|
1579
|
+
* Type = "forward",
|
|
1580
|
+
* TargetGroupArn = aws_lb_target_group.Front_end.Arn,
|
|
1531
1581
|
* },
|
|
1532
|
-
* }
|
|
1533
|
-
* }
|
|
1582
|
+
* },
|
|
1583
|
+
* });
|
|
1534
1584
|
*
|
|
1535
|
-
* }
|
|
1585
|
+
* });
|
|
1536
1586
|
* ```
|
|
1537
1587
|
* ```go
|
|
1538
1588
|
* package main
|
|
@@ -1567,10 +1617,18 @@ export declare namespace lb {
|
|
|
1567
1617
|
* ```java
|
|
1568
1618
|
* package generated_program;
|
|
1569
1619
|
*
|
|
1570
|
-
* import
|
|
1571
|
-
* import
|
|
1572
|
-
* import
|
|
1573
|
-
* import com.pulumi
|
|
1620
|
+
* import com.pulumi.Context;
|
|
1621
|
+
* import com.pulumi.Pulumi;
|
|
1622
|
+
* import com.pulumi.core.Output;
|
|
1623
|
+
* import com.pulumi.aws.lb.Listener;
|
|
1624
|
+
* import com.pulumi.aws.lb.ListenerArgs;
|
|
1625
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionArgs;
|
|
1626
|
+
* import java.util.List;
|
|
1627
|
+
* import java.util.ArrayList;
|
|
1628
|
+
* import java.util.Map;
|
|
1629
|
+
* import java.io.File;
|
|
1630
|
+
* import java.nio.file.Files;
|
|
1631
|
+
* import java.nio.file.Paths;
|
|
1574
1632
|
*
|
|
1575
1633
|
* public class App {
|
|
1576
1634
|
* public static void main(String[] args) {
|
|
@@ -1579,18 +1637,18 @@ export declare namespace lb {
|
|
|
1579
1637
|
*
|
|
1580
1638
|
* public static void stack(Context ctx) {
|
|
1581
1639
|
* var frontEnd = new Listener("frontEnd", ListenerArgs.builder()
|
|
1582
|
-
* .loadBalancerArn(aws_lb.
|
|
1640
|
+
* .loadBalancerArn(aws_lb.front_end().arn())
|
|
1583
1641
|
* .port("443")
|
|
1584
1642
|
* .protocol("TLS")
|
|
1585
1643
|
* .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4")
|
|
1586
1644
|
* .alpnPolicy("HTTP2Preferred")
|
|
1587
|
-
* .defaultActions(
|
|
1645
|
+
* .defaultActions(ListenerDefaultActionArgs.builder()
|
|
1588
1646
|
* .type("forward")
|
|
1589
|
-
* .targetGroupArn(aws_lb_target_group.
|
|
1647
|
+
* .targetGroupArn(aws_lb_target_group.front_end().arn())
|
|
1590
1648
|
* .build())
|
|
1591
1649
|
* .build());
|
|
1592
1650
|
*
|
|
1593
|
-
*
|
|
1651
|
+
* }
|
|
1594
1652
|
* }
|
|
1595
1653
|
* ```
|
|
1596
1654
|
* ```yaml
|
|
@@ -1651,39 +1709,36 @@ export declare namespace lb {
|
|
|
1651
1709
|
* )])
|
|
1652
1710
|
* ```
|
|
1653
1711
|
* ```csharp
|
|
1712
|
+
* using System.Collections.Generic;
|
|
1654
1713
|
* using Pulumi;
|
|
1655
1714
|
* using Aws = Pulumi.Aws;
|
|
1656
1715
|
*
|
|
1657
|
-
*
|
|
1716
|
+
* return await Deployment.RunAsync(() =>
|
|
1658
1717
|
* {
|
|
1659
|
-
*
|
|
1718
|
+
* var frontEndLoadBalancer = new Aws.LB.LoadBalancer("frontEndLoadBalancer");
|
|
1719
|
+
*
|
|
1720
|
+
* // ...
|
|
1721
|
+
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new()
|
|
1660
1722
|
* {
|
|
1661
|
-
*
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1664
|
-
*
|
|
1665
|
-
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new Aws.LB.ListenerArgs
|
|
1723
|
+
* LoadBalancerArn = frontEndLoadBalancer.Arn,
|
|
1724
|
+
* Port = 80,
|
|
1725
|
+
* Protocol = "HTTP",
|
|
1726
|
+
* DefaultActions = new[]
|
|
1666
1727
|
* {
|
|
1667
|
-
*
|
|
1668
|
-
* Port = 80,
|
|
1669
|
-
* Protocol = "HTTP",
|
|
1670
|
-
* DefaultActions =
|
|
1728
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
1671
1729
|
* {
|
|
1672
|
-
*
|
|
1730
|
+
* Type = "redirect",
|
|
1731
|
+
* Redirect = new Aws.LB.Inputs.ListenerDefaultActionRedirectArgs
|
|
1673
1732
|
* {
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1676
|
-
*
|
|
1677
|
-
* Port = "443",
|
|
1678
|
-
* Protocol = "HTTPS",
|
|
1679
|
-
* StatusCode = "HTTP_301",
|
|
1680
|
-
* },
|
|
1733
|
+
* Port = "443",
|
|
1734
|
+
* Protocol = "HTTPS",
|
|
1735
|
+
* StatusCode = "HTTP_301",
|
|
1681
1736
|
* },
|
|
1682
1737
|
* },
|
|
1683
|
-
* }
|
|
1684
|
-
* }
|
|
1738
|
+
* },
|
|
1739
|
+
* });
|
|
1685
1740
|
*
|
|
1686
|
-
* }
|
|
1741
|
+
* });
|
|
1687
1742
|
* ```
|
|
1688
1743
|
* ```go
|
|
1689
1744
|
* package main
|
|
@@ -1724,10 +1779,20 @@ export declare namespace lb {
|
|
|
1724
1779
|
* ```java
|
|
1725
1780
|
* package generated_program;
|
|
1726
1781
|
*
|
|
1727
|
-
* import
|
|
1728
|
-
* import
|
|
1729
|
-
* import
|
|
1730
|
-
* import com.pulumi
|
|
1782
|
+
* import com.pulumi.Context;
|
|
1783
|
+
* import com.pulumi.Pulumi;
|
|
1784
|
+
* import com.pulumi.core.Output;
|
|
1785
|
+
* import com.pulumi.aws.lb.LoadBalancer;
|
|
1786
|
+
* import com.pulumi.aws.lb.Listener;
|
|
1787
|
+
* import com.pulumi.aws.lb.ListenerArgs;
|
|
1788
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionArgs;
|
|
1789
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionRedirectArgs;
|
|
1790
|
+
* import java.util.List;
|
|
1791
|
+
* import java.util.ArrayList;
|
|
1792
|
+
* import java.util.Map;
|
|
1793
|
+
* import java.io.File;
|
|
1794
|
+
* import java.nio.file.Files;
|
|
1795
|
+
* import java.nio.file.Paths;
|
|
1731
1796
|
*
|
|
1732
1797
|
* public class App {
|
|
1733
1798
|
* public static void main(String[] args) {
|
|
@@ -1738,12 +1803,12 @@ export declare namespace lb {
|
|
|
1738
1803
|
* var frontEndLoadBalancer = new LoadBalancer("frontEndLoadBalancer");
|
|
1739
1804
|
*
|
|
1740
1805
|
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
1741
|
-
* .loadBalancerArn(frontEndLoadBalancer.
|
|
1806
|
+
* .loadBalancerArn(frontEndLoadBalancer.arn())
|
|
1742
1807
|
* .port("80")
|
|
1743
1808
|
* .protocol("HTTP")
|
|
1744
|
-
* .defaultActions(
|
|
1809
|
+
* .defaultActions(ListenerDefaultActionArgs.builder()
|
|
1745
1810
|
* .type("redirect")
|
|
1746
|
-
* .redirect(
|
|
1811
|
+
* .redirect(ListenerDefaultActionRedirectArgs.builder()
|
|
1747
1812
|
* .port("443")
|
|
1748
1813
|
* .protocol("HTTPS")
|
|
1749
1814
|
* .statusCode("HTTP_301")
|
|
@@ -1751,7 +1816,7 @@ export declare namespace lb {
|
|
|
1751
1816
|
* .build())
|
|
1752
1817
|
* .build());
|
|
1753
1818
|
*
|
|
1754
|
-
*
|
|
1819
|
+
* }
|
|
1755
1820
|
* }
|
|
1756
1821
|
* ```
|
|
1757
1822
|
* ```yaml
|
|
@@ -1815,39 +1880,36 @@ export declare namespace lb {
|
|
|
1815
1880
|
* )])
|
|
1816
1881
|
* ```
|
|
1817
1882
|
* ```csharp
|
|
1883
|
+
* using System.Collections.Generic;
|
|
1818
1884
|
* using Pulumi;
|
|
1819
1885
|
* using Aws = Pulumi.Aws;
|
|
1820
1886
|
*
|
|
1821
|
-
*
|
|
1887
|
+
* return await Deployment.RunAsync(() =>
|
|
1822
1888
|
* {
|
|
1823
|
-
*
|
|
1889
|
+
* var frontEndLoadBalancer = new Aws.LB.LoadBalancer("frontEndLoadBalancer");
|
|
1890
|
+
*
|
|
1891
|
+
* // ...
|
|
1892
|
+
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new()
|
|
1824
1893
|
* {
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1829
|
-
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new Aws.LB.ListenerArgs
|
|
1894
|
+
* LoadBalancerArn = frontEndLoadBalancer.Arn,
|
|
1895
|
+
* Port = 80,
|
|
1896
|
+
* Protocol = "HTTP",
|
|
1897
|
+
* DefaultActions = new[]
|
|
1830
1898
|
* {
|
|
1831
|
-
*
|
|
1832
|
-
* Port = 80,
|
|
1833
|
-
* Protocol = "HTTP",
|
|
1834
|
-
* DefaultActions =
|
|
1899
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
1835
1900
|
* {
|
|
1836
|
-
*
|
|
1901
|
+
* Type = "fixed-response",
|
|
1902
|
+
* FixedResponse = new Aws.LB.Inputs.ListenerDefaultActionFixedResponseArgs
|
|
1837
1903
|
* {
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
1840
|
-
*
|
|
1841
|
-
* ContentType = "text/plain",
|
|
1842
|
-
* MessageBody = "Fixed response content",
|
|
1843
|
-
* StatusCode = "200",
|
|
1844
|
-
* },
|
|
1904
|
+
* ContentType = "text/plain",
|
|
1905
|
+
* MessageBody = "Fixed response content",
|
|
1906
|
+
* StatusCode = "200",
|
|
1845
1907
|
* },
|
|
1846
1908
|
* },
|
|
1847
|
-
* }
|
|
1848
|
-
* }
|
|
1909
|
+
* },
|
|
1910
|
+
* });
|
|
1849
1911
|
*
|
|
1850
|
-
* }
|
|
1912
|
+
* });
|
|
1851
1913
|
* ```
|
|
1852
1914
|
* ```go
|
|
1853
1915
|
* package main
|
|
@@ -1888,10 +1950,20 @@ export declare namespace lb {
|
|
|
1888
1950
|
* ```java
|
|
1889
1951
|
* package generated_program;
|
|
1890
1952
|
*
|
|
1891
|
-
* import
|
|
1892
|
-
* import
|
|
1893
|
-
* import
|
|
1894
|
-
* import com.pulumi
|
|
1953
|
+
* import com.pulumi.Context;
|
|
1954
|
+
* import com.pulumi.Pulumi;
|
|
1955
|
+
* import com.pulumi.core.Output;
|
|
1956
|
+
* import com.pulumi.aws.lb.LoadBalancer;
|
|
1957
|
+
* import com.pulumi.aws.lb.Listener;
|
|
1958
|
+
* import com.pulumi.aws.lb.ListenerArgs;
|
|
1959
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionArgs;
|
|
1960
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionFixedResponseArgs;
|
|
1961
|
+
* import java.util.List;
|
|
1962
|
+
* import java.util.ArrayList;
|
|
1963
|
+
* import java.util.Map;
|
|
1964
|
+
* import java.io.File;
|
|
1965
|
+
* import java.nio.file.Files;
|
|
1966
|
+
* import java.nio.file.Paths;
|
|
1895
1967
|
*
|
|
1896
1968
|
* public class App {
|
|
1897
1969
|
* public static void main(String[] args) {
|
|
@@ -1902,12 +1974,12 @@ export declare namespace lb {
|
|
|
1902
1974
|
* var frontEndLoadBalancer = new LoadBalancer("frontEndLoadBalancer");
|
|
1903
1975
|
*
|
|
1904
1976
|
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
1905
|
-
* .loadBalancerArn(frontEndLoadBalancer.
|
|
1977
|
+
* .loadBalancerArn(frontEndLoadBalancer.arn())
|
|
1906
1978
|
* .port("80")
|
|
1907
1979
|
* .protocol("HTTP")
|
|
1908
|
-
* .defaultActions(
|
|
1980
|
+
* .defaultActions(ListenerDefaultActionArgs.builder()
|
|
1909
1981
|
* .type("fixed-response")
|
|
1910
|
-
* .fixedResponse(
|
|
1982
|
+
* .fixedResponse(ListenerDefaultActionFixedResponseArgs.builder()
|
|
1911
1983
|
* .contentType("text/plain")
|
|
1912
1984
|
* .messageBody("Fixed response content")
|
|
1913
1985
|
* .statusCode("200")
|
|
@@ -1915,7 +1987,7 @@ export declare namespace lb {
|
|
|
1915
1987
|
* .build())
|
|
1916
1988
|
* .build());
|
|
1917
1989
|
*
|
|
1918
|
-
*
|
|
1990
|
+
* }
|
|
1919
1991
|
* }
|
|
1920
1992
|
* ```
|
|
1921
1993
|
* ```yaml
|
|
@@ -2007,60 +2079,53 @@ export declare namespace lb {
|
|
|
2007
2079
|
* ])
|
|
2008
2080
|
* ```
|
|
2009
2081
|
* ```csharp
|
|
2082
|
+
* using System.Collections.Generic;
|
|
2010
2083
|
* using Pulumi;
|
|
2011
2084
|
* using Aws = Pulumi.Aws;
|
|
2012
2085
|
*
|
|
2013
|
-
*
|
|
2086
|
+
* return await Deployment.RunAsync(() =>
|
|
2014
2087
|
* {
|
|
2015
|
-
*
|
|
2088
|
+
* var frontEndLoadBalancer = new Aws.LB.LoadBalancer("frontEndLoadBalancer");
|
|
2089
|
+
*
|
|
2090
|
+
* // ...
|
|
2091
|
+
* var frontEndTargetGroup = new Aws.LB.TargetGroup("frontEndTargetGroup");
|
|
2092
|
+
*
|
|
2093
|
+
* // ...
|
|
2094
|
+
* var pool = new Aws.Cognito.UserPool("pool");
|
|
2095
|
+
*
|
|
2096
|
+
* // ...
|
|
2097
|
+
* var client = new Aws.Cognito.UserPoolClient("client");
|
|
2098
|
+
*
|
|
2099
|
+
* // ...
|
|
2100
|
+
* var domain = new Aws.Cognito.UserPoolDomain("domain");
|
|
2101
|
+
*
|
|
2102
|
+
* // ...
|
|
2103
|
+
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new()
|
|
2016
2104
|
* {
|
|
2017
|
-
*
|
|
2018
|
-
*
|
|
2019
|
-
*
|
|
2020
|
-
*
|
|
2021
|
-
* var frontEndTargetGroup = new Aws.LB.TargetGroup("frontEndTargetGroup", new Aws.LB.TargetGroupArgs
|
|
2022
|
-
* {
|
|
2023
|
-
* });
|
|
2024
|
-
* // ...
|
|
2025
|
-
* var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs
|
|
2105
|
+
* LoadBalancerArn = frontEndLoadBalancer.Arn,
|
|
2106
|
+
* Port = 80,
|
|
2107
|
+
* Protocol = "HTTP",
|
|
2108
|
+
* DefaultActions = new[]
|
|
2026
2109
|
* {
|
|
2027
|
-
*
|
|
2028
|
-
* // ...
|
|
2029
|
-
* var client = new Aws.Cognito.UserPoolClient("client", new Aws.Cognito.UserPoolClientArgs
|
|
2030
|
-
* {
|
|
2031
|
-
* });
|
|
2032
|
-
* // ...
|
|
2033
|
-
* var domain = new Aws.Cognito.UserPoolDomain("domain", new Aws.Cognito.UserPoolDomainArgs
|
|
2034
|
-
* {
|
|
2035
|
-
* });
|
|
2036
|
-
* // ...
|
|
2037
|
-
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new Aws.LB.ListenerArgs
|
|
2038
|
-
* {
|
|
2039
|
-
* LoadBalancerArn = frontEndLoadBalancer.Arn,
|
|
2040
|
-
* Port = 80,
|
|
2041
|
-
* Protocol = "HTTP",
|
|
2042
|
-
* DefaultActions =
|
|
2110
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
2043
2111
|
* {
|
|
2044
|
-
*
|
|
2045
|
-
*
|
|
2046
|
-
* Type = "authenticate-cognito",
|
|
2047
|
-
* AuthenticateCognito = new Aws.LB.Inputs.ListenerDefaultActionAuthenticateCognitoArgs
|
|
2048
|
-
* {
|
|
2049
|
-
* UserPoolArn = pool.Arn,
|
|
2050
|
-
* UserPoolClientId = client.Id,
|
|
2051
|
-
* UserPoolDomain = domain.Domain,
|
|
2052
|
-
* },
|
|
2053
|
-
* },
|
|
2054
|
-
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
2112
|
+
* Type = "authenticate-cognito",
|
|
2113
|
+
* AuthenticateCognito = new Aws.LB.Inputs.ListenerDefaultActionAuthenticateCognitoArgs
|
|
2055
2114
|
* {
|
|
2056
|
-
*
|
|
2057
|
-
*
|
|
2115
|
+
* UserPoolArn = pool.Arn,
|
|
2116
|
+
* UserPoolClientId = client.Id,
|
|
2117
|
+
* UserPoolDomain = domain.Domain,
|
|
2058
2118
|
* },
|
|
2059
2119
|
* },
|
|
2060
|
-
*
|
|
2061
|
-
*
|
|
2120
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
2121
|
+
* {
|
|
2122
|
+
* Type = "forward",
|
|
2123
|
+
* TargetGroupArn = frontEndTargetGroup.Arn,
|
|
2124
|
+
* },
|
|
2125
|
+
* },
|
|
2126
|
+
* });
|
|
2062
2127
|
*
|
|
2063
|
-
* }
|
|
2128
|
+
* });
|
|
2064
2129
|
* ```
|
|
2065
2130
|
* ```go
|
|
2066
2131
|
* package main
|
|
@@ -2122,10 +2187,24 @@ export declare namespace lb {
|
|
|
2122
2187
|
* ```java
|
|
2123
2188
|
* package generated_program;
|
|
2124
2189
|
*
|
|
2125
|
-
* import
|
|
2126
|
-
* import
|
|
2127
|
-
* import
|
|
2128
|
-
* import com.pulumi
|
|
2190
|
+
* import com.pulumi.Context;
|
|
2191
|
+
* import com.pulumi.Pulumi;
|
|
2192
|
+
* import com.pulumi.core.Output;
|
|
2193
|
+
* import com.pulumi.aws.lb.LoadBalancer;
|
|
2194
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
2195
|
+
* import com.pulumi.aws.cognito.UserPool;
|
|
2196
|
+
* import com.pulumi.aws.cognito.UserPoolClient;
|
|
2197
|
+
* import com.pulumi.aws.cognito.UserPoolDomain;
|
|
2198
|
+
* import com.pulumi.aws.lb.Listener;
|
|
2199
|
+
* import com.pulumi.aws.lb.ListenerArgs;
|
|
2200
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionArgs;
|
|
2201
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionAuthenticateCognitoArgs;
|
|
2202
|
+
* import java.util.List;
|
|
2203
|
+
* import java.util.ArrayList;
|
|
2204
|
+
* import java.util.Map;
|
|
2205
|
+
* import java.io.File;
|
|
2206
|
+
* import java.nio.file.Files;
|
|
2207
|
+
* import java.nio.file.Paths;
|
|
2129
2208
|
*
|
|
2130
2209
|
* public class App {
|
|
2131
2210
|
* public static void main(String[] args) {
|
|
@@ -2144,25 +2223,25 @@ export declare namespace lb {
|
|
|
2144
2223
|
* var domain = new UserPoolDomain("domain");
|
|
2145
2224
|
*
|
|
2146
2225
|
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
2147
|
-
* .loadBalancerArn(frontEndLoadBalancer.
|
|
2226
|
+
* .loadBalancerArn(frontEndLoadBalancer.arn())
|
|
2148
2227
|
* .port("80")
|
|
2149
2228
|
* .protocol("HTTP")
|
|
2150
2229
|
* .defaultActions(
|
|
2151
|
-
*
|
|
2230
|
+
* ListenerDefaultActionArgs.builder()
|
|
2152
2231
|
* .type("authenticate-cognito")
|
|
2153
|
-
* .authenticateCognito(
|
|
2154
|
-
* .userPoolArn(pool.
|
|
2155
|
-
* .userPoolClientId(client.
|
|
2156
|
-
* .userPoolDomain(domain.
|
|
2232
|
+
* .authenticateCognito(ListenerDefaultActionAuthenticateCognitoArgs.builder()
|
|
2233
|
+
* .userPoolArn(pool.arn())
|
|
2234
|
+
* .userPoolClientId(client.id())
|
|
2235
|
+
* .userPoolDomain(domain.domain())
|
|
2157
2236
|
* .build())
|
|
2158
2237
|
* .build(),
|
|
2159
|
-
*
|
|
2238
|
+
* ListenerDefaultActionArgs.builder()
|
|
2160
2239
|
* .type("forward")
|
|
2161
|
-
* .targetGroupArn(frontEndTargetGroup.
|
|
2240
|
+
* .targetGroupArn(frontEndTargetGroup.arn())
|
|
2162
2241
|
* .build())
|
|
2163
2242
|
* .build());
|
|
2164
2243
|
*
|
|
2165
|
-
*
|
|
2244
|
+
* }
|
|
2166
2245
|
* }
|
|
2167
2246
|
* ```
|
|
2168
2247
|
* ```yaml
|
|
@@ -2258,51 +2337,47 @@ export declare namespace lb {
|
|
|
2258
2337
|
* ])
|
|
2259
2338
|
* ```
|
|
2260
2339
|
* ```csharp
|
|
2340
|
+
* using System.Collections.Generic;
|
|
2261
2341
|
* using Pulumi;
|
|
2262
2342
|
* using Aws = Pulumi.Aws;
|
|
2263
2343
|
*
|
|
2264
|
-
*
|
|
2344
|
+
* return await Deployment.RunAsync(() =>
|
|
2265
2345
|
* {
|
|
2266
|
-
*
|
|
2346
|
+
* var frontEndLoadBalancer = new Aws.LB.LoadBalancer("frontEndLoadBalancer");
|
|
2347
|
+
*
|
|
2348
|
+
* // ...
|
|
2349
|
+
* var frontEndTargetGroup = new Aws.LB.TargetGroup("frontEndTargetGroup");
|
|
2350
|
+
*
|
|
2351
|
+
* // ...
|
|
2352
|
+
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new()
|
|
2267
2353
|
* {
|
|
2268
|
-
*
|
|
2269
|
-
*
|
|
2270
|
-
*
|
|
2271
|
-
*
|
|
2272
|
-
* var frontEndTargetGroup = new Aws.LB.TargetGroup("frontEndTargetGroup", new Aws.LB.TargetGroupArgs
|
|
2354
|
+
* LoadBalancerArn = frontEndLoadBalancer.Arn,
|
|
2355
|
+
* Port = 80,
|
|
2356
|
+
* Protocol = "HTTP",
|
|
2357
|
+
* DefaultActions = new[]
|
|
2273
2358
|
* {
|
|
2274
|
-
*
|
|
2275
|
-
* // ...
|
|
2276
|
-
* var frontEndListener = new Aws.LB.Listener("frontEndListener", new Aws.LB.ListenerArgs
|
|
2277
|
-
* {
|
|
2278
|
-
* LoadBalancerArn = frontEndLoadBalancer.Arn,
|
|
2279
|
-
* Port = 80,
|
|
2280
|
-
* Protocol = "HTTP",
|
|
2281
|
-
* DefaultActions =
|
|
2359
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
2282
2360
|
* {
|
|
2283
|
-
*
|
|
2284
|
-
*
|
|
2285
|
-
* Type = "authenticate-oidc",
|
|
2286
|
-
* AuthenticateOidc = new Aws.LB.Inputs.ListenerDefaultActionAuthenticateOidcArgs
|
|
2287
|
-
* {
|
|
2288
|
-
* AuthorizationEndpoint = "https://example.com/authorization_endpoint",
|
|
2289
|
-
* ClientId = "client_id",
|
|
2290
|
-
* ClientSecret = "client_secret",
|
|
2291
|
-
* Issuer = "https://example.com",
|
|
2292
|
-
* TokenEndpoint = "https://example.com/token_endpoint",
|
|
2293
|
-
* UserInfoEndpoint = "https://example.com/user_info_endpoint",
|
|
2294
|
-
* },
|
|
2295
|
-
* },
|
|
2296
|
-
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
2361
|
+
* Type = "authenticate-oidc",
|
|
2362
|
+
* AuthenticateOidc = new Aws.LB.Inputs.ListenerDefaultActionAuthenticateOidcArgs
|
|
2297
2363
|
* {
|
|
2298
|
-
*
|
|
2299
|
-
*
|
|
2364
|
+
* AuthorizationEndpoint = "https://example.com/authorization_endpoint",
|
|
2365
|
+
* ClientId = "client_id",
|
|
2366
|
+
* ClientSecret = "client_secret",
|
|
2367
|
+
* Issuer = "https://example.com",
|
|
2368
|
+
* TokenEndpoint = "https://example.com/token_endpoint",
|
|
2369
|
+
* UserInfoEndpoint = "https://example.com/user_info_endpoint",
|
|
2300
2370
|
* },
|
|
2301
2371
|
* },
|
|
2302
|
-
*
|
|
2303
|
-
*
|
|
2372
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
2373
|
+
* {
|
|
2374
|
+
* Type = "forward",
|
|
2375
|
+
* TargetGroupArn = frontEndTargetGroup.Arn,
|
|
2376
|
+
* },
|
|
2377
|
+
* },
|
|
2378
|
+
* });
|
|
2304
2379
|
*
|
|
2305
|
-
* }
|
|
2380
|
+
* });
|
|
2306
2381
|
* ```
|
|
2307
2382
|
* ```go
|
|
2308
2383
|
* package main
|
|
@@ -2354,10 +2429,21 @@ export declare namespace lb {
|
|
|
2354
2429
|
* ```java
|
|
2355
2430
|
* package generated_program;
|
|
2356
2431
|
*
|
|
2357
|
-
* import
|
|
2358
|
-
* import
|
|
2359
|
-
* import
|
|
2360
|
-
* import com.pulumi
|
|
2432
|
+
* import com.pulumi.Context;
|
|
2433
|
+
* import com.pulumi.Pulumi;
|
|
2434
|
+
* import com.pulumi.core.Output;
|
|
2435
|
+
* import com.pulumi.aws.lb.LoadBalancer;
|
|
2436
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
2437
|
+
* import com.pulumi.aws.lb.Listener;
|
|
2438
|
+
* import com.pulumi.aws.lb.ListenerArgs;
|
|
2439
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionArgs;
|
|
2440
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionAuthenticateOidcArgs;
|
|
2441
|
+
* import java.util.List;
|
|
2442
|
+
* import java.util.ArrayList;
|
|
2443
|
+
* import java.util.Map;
|
|
2444
|
+
* import java.io.File;
|
|
2445
|
+
* import java.nio.file.Files;
|
|
2446
|
+
* import java.nio.file.Paths;
|
|
2361
2447
|
*
|
|
2362
2448
|
* public class App {
|
|
2363
2449
|
* public static void main(String[] args) {
|
|
@@ -2370,13 +2456,13 @@ export declare namespace lb {
|
|
|
2370
2456
|
* var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup");
|
|
2371
2457
|
*
|
|
2372
2458
|
* var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder()
|
|
2373
|
-
* .loadBalancerArn(frontEndLoadBalancer.
|
|
2459
|
+
* .loadBalancerArn(frontEndLoadBalancer.arn())
|
|
2374
2460
|
* .port("80")
|
|
2375
2461
|
* .protocol("HTTP")
|
|
2376
2462
|
* .defaultActions(
|
|
2377
|
-
*
|
|
2463
|
+
* ListenerDefaultActionArgs.builder()
|
|
2378
2464
|
* .type("authenticate-oidc")
|
|
2379
|
-
* .authenticateOidc(
|
|
2465
|
+
* .authenticateOidc(ListenerDefaultActionAuthenticateOidcArgs.builder()
|
|
2380
2466
|
* .authorizationEndpoint("https://example.com/authorization_endpoint")
|
|
2381
2467
|
* .clientId("client_id")
|
|
2382
2468
|
* .clientSecret("client_secret")
|
|
@@ -2385,13 +2471,13 @@ export declare namespace lb {
|
|
|
2385
2471
|
* .userInfoEndpoint("https://example.com/user_info_endpoint")
|
|
2386
2472
|
* .build())
|
|
2387
2473
|
* .build(),
|
|
2388
|
-
*
|
|
2474
|
+
* ListenerDefaultActionArgs.builder()
|
|
2389
2475
|
* .type("forward")
|
|
2390
|
-
* .targetGroupArn(frontEndTargetGroup.
|
|
2476
|
+
* .targetGroupArn(frontEndTargetGroup.arn())
|
|
2391
2477
|
* .build())
|
|
2392
2478
|
* .build());
|
|
2393
2479
|
*
|
|
2394
|
-
*
|
|
2480
|
+
* }
|
|
2395
2481
|
* }
|
|
2396
2482
|
* ```
|
|
2397
2483
|
* ```yaml
|
|
@@ -2474,50 +2560,50 @@ export declare namespace lb {
|
|
|
2474
2560
|
* )])
|
|
2475
2561
|
* ```
|
|
2476
2562
|
* ```csharp
|
|
2563
|
+
* using System.Collections.Generic;
|
|
2477
2564
|
* using Pulumi;
|
|
2478
2565
|
* using Aws = Pulumi.Aws;
|
|
2479
2566
|
*
|
|
2480
|
-
*
|
|
2567
|
+
* return await Deployment.RunAsync(() =>
|
|
2481
2568
|
* {
|
|
2482
|
-
*
|
|
2569
|
+
* var exampleLoadBalancer = new Aws.LB.LoadBalancer("exampleLoadBalancer", new()
|
|
2483
2570
|
* {
|
|
2484
|
-
*
|
|
2571
|
+
* LoadBalancerType = "gateway",
|
|
2572
|
+
* SubnetMappings = new[]
|
|
2485
2573
|
* {
|
|
2486
|
-
*
|
|
2487
|
-
* SubnetMappings =
|
|
2574
|
+
* new Aws.LB.Inputs.LoadBalancerSubnetMappingArgs
|
|
2488
2575
|
* {
|
|
2489
|
-
*
|
|
2490
|
-
* {
|
|
2491
|
-
* SubnetId = aws_subnet.Example.Id,
|
|
2492
|
-
* },
|
|
2576
|
+
* SubnetId = aws_subnet.Example.Id,
|
|
2493
2577
|
* },
|
|
2494
|
-
* }
|
|
2495
|
-
*
|
|
2578
|
+
* },
|
|
2579
|
+
* });
|
|
2580
|
+
*
|
|
2581
|
+
* var exampleTargetGroup = new Aws.LB.TargetGroup("exampleTargetGroup", new()
|
|
2582
|
+
* {
|
|
2583
|
+
* Port = 6081,
|
|
2584
|
+
* Protocol = "GENEVE",
|
|
2585
|
+
* VpcId = aws_vpc.Example.Id,
|
|
2586
|
+
* HealthCheck = new Aws.LB.Inputs.TargetGroupHealthCheckArgs
|
|
2496
2587
|
* {
|
|
2497
|
-
* Port =
|
|
2498
|
-
* Protocol = "
|
|
2499
|
-
*
|
|
2500
|
-
*
|
|
2501
|
-
*
|
|
2502
|
-
*
|
|
2503
|
-
*
|
|
2504
|
-
*
|
|
2505
|
-
*
|
|
2506
|
-
* var exampleListener = new Aws.LB.Listener("exampleListener", new Aws.LB.ListenerArgs
|
|
2588
|
+
* Port = "80",
|
|
2589
|
+
* Protocol = "HTTP",
|
|
2590
|
+
* },
|
|
2591
|
+
* });
|
|
2592
|
+
*
|
|
2593
|
+
* var exampleListener = new Aws.LB.Listener("exampleListener", new()
|
|
2594
|
+
* {
|
|
2595
|
+
* LoadBalancerArn = exampleLoadBalancer.Id,
|
|
2596
|
+
* DefaultActions = new[]
|
|
2507
2597
|
* {
|
|
2508
|
-
*
|
|
2509
|
-
* DefaultActions =
|
|
2598
|
+
* new Aws.LB.Inputs.ListenerDefaultActionArgs
|
|
2510
2599
|
* {
|
|
2511
|
-
*
|
|
2512
|
-
*
|
|
2513
|
-
* TargetGroupArn = exampleTargetGroup.Id,
|
|
2514
|
-
* Type = "forward",
|
|
2515
|
-
* },
|
|
2600
|
+
* TargetGroupArn = exampleTargetGroup.Id,
|
|
2601
|
+
* Type = "forward",
|
|
2516
2602
|
* },
|
|
2517
|
-
* }
|
|
2518
|
-
* }
|
|
2603
|
+
* },
|
|
2604
|
+
* });
|
|
2519
2605
|
*
|
|
2520
|
-
* }
|
|
2606
|
+
* });
|
|
2521
2607
|
* ```
|
|
2522
2608
|
* ```go
|
|
2523
2609
|
* package main
|
|
@@ -2571,10 +2657,24 @@ export declare namespace lb {
|
|
|
2571
2657
|
* ```java
|
|
2572
2658
|
* package generated_program;
|
|
2573
2659
|
*
|
|
2574
|
-
* import
|
|
2575
|
-
* import
|
|
2576
|
-
* import
|
|
2577
|
-
* import com.pulumi
|
|
2660
|
+
* import com.pulumi.Context;
|
|
2661
|
+
* import com.pulumi.Pulumi;
|
|
2662
|
+
* import com.pulumi.core.Output;
|
|
2663
|
+
* import com.pulumi.aws.lb.LoadBalancer;
|
|
2664
|
+
* import com.pulumi.aws.lb.LoadBalancerArgs;
|
|
2665
|
+
* import com.pulumi.aws.lb.inputs.LoadBalancerSubnetMappingArgs;
|
|
2666
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
2667
|
+
* import com.pulumi.aws.lb.TargetGroupArgs;
|
|
2668
|
+
* import com.pulumi.aws.lb.inputs.TargetGroupHealthCheckArgs;
|
|
2669
|
+
* import com.pulumi.aws.lb.Listener;
|
|
2670
|
+
* import com.pulumi.aws.lb.ListenerArgs;
|
|
2671
|
+
* import com.pulumi.aws.lb.inputs.ListenerDefaultActionArgs;
|
|
2672
|
+
* import java.util.List;
|
|
2673
|
+
* import java.util.ArrayList;
|
|
2674
|
+
* import java.util.Map;
|
|
2675
|
+
* import java.io.File;
|
|
2676
|
+
* import java.nio.file.Files;
|
|
2677
|
+
* import java.nio.file.Paths;
|
|
2578
2678
|
*
|
|
2579
2679
|
* public class App {
|
|
2580
2680
|
* public static void main(String[] args) {
|
|
@@ -2584,30 +2684,30 @@ export declare namespace lb {
|
|
|
2584
2684
|
* public static void stack(Context ctx) {
|
|
2585
2685
|
* var exampleLoadBalancer = new LoadBalancer("exampleLoadBalancer", LoadBalancerArgs.builder()
|
|
2586
2686
|
* .loadBalancerType("gateway")
|
|
2587
|
-
* .subnetMappings(
|
|
2588
|
-
* .subnetId(aws_subnet.
|
|
2687
|
+
* .subnetMappings(LoadBalancerSubnetMappingArgs.builder()
|
|
2688
|
+
* .subnetId(aws_subnet.example().id())
|
|
2589
2689
|
* .build())
|
|
2590
2690
|
* .build());
|
|
2591
2691
|
*
|
|
2592
2692
|
* var exampleTargetGroup = new TargetGroup("exampleTargetGroup", TargetGroupArgs.builder()
|
|
2593
2693
|
* .port(6081)
|
|
2594
2694
|
* .protocol("GENEVE")
|
|
2595
|
-
* .vpcId(aws_vpc.
|
|
2596
|
-
* .healthCheck(
|
|
2695
|
+
* .vpcId(aws_vpc.example().id())
|
|
2696
|
+
* .healthCheck(TargetGroupHealthCheckArgs.builder()
|
|
2597
2697
|
* .port(80)
|
|
2598
2698
|
* .protocol("HTTP")
|
|
2599
2699
|
* .build())
|
|
2600
2700
|
* .build());
|
|
2601
2701
|
*
|
|
2602
2702
|
* var exampleListener = new Listener("exampleListener", ListenerArgs.builder()
|
|
2603
|
-
* .loadBalancerArn(exampleLoadBalancer.
|
|
2604
|
-
* .defaultActions(
|
|
2605
|
-
* .targetGroupArn(exampleTargetGroup.
|
|
2703
|
+
* .loadBalancerArn(exampleLoadBalancer.id())
|
|
2704
|
+
* .defaultActions(ListenerDefaultActionArgs.builder()
|
|
2705
|
+
* .targetGroupArn(exampleTargetGroup.id())
|
|
2606
2706
|
* .type("forward")
|
|
2607
2707
|
* .build())
|
|
2608
2708
|
* .build());
|
|
2609
2709
|
*
|
|
2610
|
-
*
|
|
2710
|
+
* }
|
|
2611
2711
|
* }
|
|
2612
2712
|
* ```
|
|
2613
2713
|
* ```yaml
|
|
@@ -2712,26 +2812,25 @@ export declare namespace lb {
|
|
|
2712
2812
|
* vpc_id=main.id)
|
|
2713
2813
|
* ```
|
|
2714
2814
|
* ```csharp
|
|
2815
|
+
* using System.Collections.Generic;
|
|
2715
2816
|
* using Pulumi;
|
|
2716
2817
|
* using Aws = Pulumi.Aws;
|
|
2717
2818
|
*
|
|
2718
|
-
*
|
|
2819
|
+
* return await Deployment.RunAsync(() =>
|
|
2719
2820
|
* {
|
|
2720
|
-
*
|
|
2821
|
+
* var main = new Aws.Ec2.Vpc("main", new()
|
|
2721
2822
|
* {
|
|
2722
|
-
*
|
|
2723
|
-
*
|
|
2724
|
-
* CidrBlock = "10.0.0.0/16",
|
|
2725
|
-
* });
|
|
2726
|
-
* var test = new Aws.LB.TargetGroup("test", new Aws.LB.TargetGroupArgs
|
|
2727
|
-
* {
|
|
2728
|
-
* Port = 80,
|
|
2729
|
-
* Protocol = "HTTP",
|
|
2730
|
-
* VpcId = main.Id,
|
|
2731
|
-
* });
|
|
2732
|
-
* }
|
|
2823
|
+
* CidrBlock = "10.0.0.0/16",
|
|
2824
|
+
* });
|
|
2733
2825
|
*
|
|
2734
|
-
*
|
|
2826
|
+
* var test = new Aws.LB.TargetGroup("test", new()
|
|
2827
|
+
* {
|
|
2828
|
+
* Port = 80,
|
|
2829
|
+
* Protocol = "HTTP",
|
|
2830
|
+
* VpcId = main.Id,
|
|
2831
|
+
* });
|
|
2832
|
+
*
|
|
2833
|
+
* });
|
|
2735
2834
|
* ```
|
|
2736
2835
|
* ```go
|
|
2737
2836
|
* package main
|
|
@@ -2765,10 +2864,19 @@ export declare namespace lb {
|
|
|
2765
2864
|
* ```java
|
|
2766
2865
|
* package generated_program;
|
|
2767
2866
|
*
|
|
2768
|
-
* import
|
|
2769
|
-
* import
|
|
2770
|
-
* import
|
|
2771
|
-
* import com.pulumi
|
|
2867
|
+
* import com.pulumi.Context;
|
|
2868
|
+
* import com.pulumi.Pulumi;
|
|
2869
|
+
* import com.pulumi.core.Output;
|
|
2870
|
+
* import com.pulumi.aws.ec2.Vpc;
|
|
2871
|
+
* import com.pulumi.aws.ec2.VpcArgs;
|
|
2872
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
2873
|
+
* import com.pulumi.aws.lb.TargetGroupArgs;
|
|
2874
|
+
* import java.util.List;
|
|
2875
|
+
* import java.util.ArrayList;
|
|
2876
|
+
* import java.util.Map;
|
|
2877
|
+
* import java.io.File;
|
|
2878
|
+
* import java.nio.file.Files;
|
|
2879
|
+
* import java.nio.file.Paths;
|
|
2772
2880
|
*
|
|
2773
2881
|
* public class App {
|
|
2774
2882
|
* public static void main(String[] args) {
|
|
@@ -2783,10 +2891,10 @@ export declare namespace lb {
|
|
|
2783
2891
|
* var test = new TargetGroup("test", TargetGroupArgs.builder()
|
|
2784
2892
|
* .port(80)
|
|
2785
2893
|
* .protocol("HTTP")
|
|
2786
|
-
* .vpcId(main.
|
|
2894
|
+
* .vpcId(main.id())
|
|
2787
2895
|
* .build());
|
|
2788
2896
|
*
|
|
2789
|
-
*
|
|
2897
|
+
* }
|
|
2790
2898
|
* }
|
|
2791
2899
|
* ```
|
|
2792
2900
|
* ```yaml
|
|
@@ -2830,27 +2938,26 @@ export declare namespace lb {
|
|
|
2830
2938
|
* vpc_id=main.id)
|
|
2831
2939
|
* ```
|
|
2832
2940
|
* ```csharp
|
|
2941
|
+
* using System.Collections.Generic;
|
|
2833
2942
|
* using Pulumi;
|
|
2834
2943
|
* using Aws = Pulumi.Aws;
|
|
2835
2944
|
*
|
|
2836
|
-
*
|
|
2945
|
+
* return await Deployment.RunAsync(() =>
|
|
2837
2946
|
* {
|
|
2838
|
-
*
|
|
2947
|
+
* var main = new Aws.Ec2.Vpc("main", new()
|
|
2839
2948
|
* {
|
|
2840
|
-
*
|
|
2841
|
-
*
|
|
2842
|
-
* CidrBlock = "10.0.0.0/16",
|
|
2843
|
-
* });
|
|
2844
|
-
* var ip_example = new Aws.LB.TargetGroup("ip-example", new Aws.LB.TargetGroupArgs
|
|
2845
|
-
* {
|
|
2846
|
-
* Port = 80,
|
|
2847
|
-
* Protocol = "HTTP",
|
|
2848
|
-
* TargetType = "ip",
|
|
2849
|
-
* VpcId = main.Id,
|
|
2850
|
-
* });
|
|
2851
|
-
* }
|
|
2949
|
+
* CidrBlock = "10.0.0.0/16",
|
|
2950
|
+
* });
|
|
2852
2951
|
*
|
|
2853
|
-
*
|
|
2952
|
+
* var ip_example = new Aws.LB.TargetGroup("ip-example", new()
|
|
2953
|
+
* {
|
|
2954
|
+
* Port = 80,
|
|
2955
|
+
* Protocol = "HTTP",
|
|
2956
|
+
* TargetType = "ip",
|
|
2957
|
+
* VpcId = main.Id,
|
|
2958
|
+
* });
|
|
2959
|
+
*
|
|
2960
|
+
* });
|
|
2854
2961
|
* ```
|
|
2855
2962
|
* ```go
|
|
2856
2963
|
* package main
|
|
@@ -2885,10 +2992,19 @@ export declare namespace lb {
|
|
|
2885
2992
|
* ```java
|
|
2886
2993
|
* package generated_program;
|
|
2887
2994
|
*
|
|
2888
|
-
* import
|
|
2889
|
-
* import
|
|
2890
|
-
* import
|
|
2891
|
-
* import com.pulumi
|
|
2995
|
+
* import com.pulumi.Context;
|
|
2996
|
+
* import com.pulumi.Pulumi;
|
|
2997
|
+
* import com.pulumi.core.Output;
|
|
2998
|
+
* import com.pulumi.aws.ec2.Vpc;
|
|
2999
|
+
* import com.pulumi.aws.ec2.VpcArgs;
|
|
3000
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
3001
|
+
* import com.pulumi.aws.lb.TargetGroupArgs;
|
|
3002
|
+
* import java.util.List;
|
|
3003
|
+
* import java.util.ArrayList;
|
|
3004
|
+
* import java.util.Map;
|
|
3005
|
+
* import java.io.File;
|
|
3006
|
+
* import java.nio.file.Files;
|
|
3007
|
+
* import java.nio.file.Paths;
|
|
2892
3008
|
*
|
|
2893
3009
|
* public class App {
|
|
2894
3010
|
* public static void main(String[] args) {
|
|
@@ -2904,10 +3020,10 @@ export declare namespace lb {
|
|
|
2904
3020
|
* .port(80)
|
|
2905
3021
|
* .protocol("HTTP")
|
|
2906
3022
|
* .targetType("ip")
|
|
2907
|
-
* .vpcId(main.
|
|
3023
|
+
* .vpcId(main.id())
|
|
2908
3024
|
* .build());
|
|
2909
3025
|
*
|
|
2910
|
-
*
|
|
3026
|
+
* }
|
|
2911
3027
|
* }
|
|
2912
3028
|
* ```
|
|
2913
3029
|
* ```yaml
|
|
@@ -2943,20 +3059,18 @@ export declare namespace lb {
|
|
|
2943
3059
|
* lambda_example = aws.lb.TargetGroup("lambda-example", target_type="lambda")
|
|
2944
3060
|
* ```
|
|
2945
3061
|
* ```csharp
|
|
3062
|
+
* using System.Collections.Generic;
|
|
2946
3063
|
* using Pulumi;
|
|
2947
3064
|
* using Aws = Pulumi.Aws;
|
|
2948
3065
|
*
|
|
2949
|
-
*
|
|
3066
|
+
* return await Deployment.RunAsync(() =>
|
|
2950
3067
|
* {
|
|
2951
|
-
*
|
|
3068
|
+
* var lambda_example = new Aws.LB.TargetGroup("lambda-example", new()
|
|
2952
3069
|
* {
|
|
2953
|
-
*
|
|
2954
|
-
*
|
|
2955
|
-
* TargetType = "lambda",
|
|
2956
|
-
* });
|
|
2957
|
-
* }
|
|
3070
|
+
* TargetType = "lambda",
|
|
3071
|
+
* });
|
|
2958
3072
|
*
|
|
2959
|
-
* }
|
|
3073
|
+
* });
|
|
2960
3074
|
* ```
|
|
2961
3075
|
* ```go
|
|
2962
3076
|
* package main
|
|
@@ -2981,10 +3095,17 @@ export declare namespace lb {
|
|
|
2981
3095
|
* ```java
|
|
2982
3096
|
* package generated_program;
|
|
2983
3097
|
*
|
|
2984
|
-
* import
|
|
2985
|
-
* import
|
|
2986
|
-
* import
|
|
2987
|
-
* import com.pulumi
|
|
3098
|
+
* import com.pulumi.Context;
|
|
3099
|
+
* import com.pulumi.Pulumi;
|
|
3100
|
+
* import com.pulumi.core.Output;
|
|
3101
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
3102
|
+
* import com.pulumi.aws.lb.TargetGroupArgs;
|
|
3103
|
+
* import java.util.List;
|
|
3104
|
+
* import java.util.ArrayList;
|
|
3105
|
+
* import java.util.Map;
|
|
3106
|
+
* import java.io.File;
|
|
3107
|
+
* import java.nio.file.Files;
|
|
3108
|
+
* import java.nio.file.Paths;
|
|
2988
3109
|
*
|
|
2989
3110
|
* public class App {
|
|
2990
3111
|
* public static void main(String[] args) {
|
|
@@ -2996,7 +3117,7 @@ export declare namespace lb {
|
|
|
2996
3117
|
* .targetType("lambda")
|
|
2997
3118
|
* .build());
|
|
2998
3119
|
*
|
|
2999
|
-
*
|
|
3120
|
+
* }
|
|
3000
3121
|
* }
|
|
3001
3122
|
* ```
|
|
3002
3123
|
* ```yaml
|
|
@@ -3014,7 +3135,7 @@ export declare namespace lb {
|
|
|
3014
3135
|
* import * as pulumi from "@pulumi/pulumi";
|
|
3015
3136
|
* import * as aws from "@pulumi/aws";
|
|
3016
3137
|
*
|
|
3017
|
-
* const
|
|
3138
|
+
* const alb_example = new aws.lb.TargetGroup("alb-example", {
|
|
3018
3139
|
* targetType: "alb",
|
|
3019
3140
|
* port: 80,
|
|
3020
3141
|
* protocol: "TCP",
|
|
@@ -3025,30 +3146,28 @@ export declare namespace lb {
|
|
|
3025
3146
|
* import pulumi
|
|
3026
3147
|
* import pulumi_aws as aws
|
|
3027
3148
|
*
|
|
3028
|
-
*
|
|
3149
|
+
* alb_example = aws.lb.TargetGroup("alb-example",
|
|
3029
3150
|
* target_type="alb",
|
|
3030
3151
|
* port=80,
|
|
3031
3152
|
* protocol="TCP",
|
|
3032
3153
|
* vpc_id=aws_vpc["main"]["id"])
|
|
3033
3154
|
* ```
|
|
3034
3155
|
* ```csharp
|
|
3156
|
+
* using System.Collections.Generic;
|
|
3035
3157
|
* using Pulumi;
|
|
3036
3158
|
* using Aws = Pulumi.Aws;
|
|
3037
3159
|
*
|
|
3038
|
-
*
|
|
3160
|
+
* return await Deployment.RunAsync(() =>
|
|
3039
3161
|
* {
|
|
3040
|
-
*
|
|
3162
|
+
* var alb_example = new Aws.LB.TargetGroup("alb-example", new()
|
|
3041
3163
|
* {
|
|
3042
|
-
*
|
|
3043
|
-
*
|
|
3044
|
-
*
|
|
3045
|
-
*
|
|
3046
|
-
*
|
|
3047
|
-
* VpcId = aws_vpc.Main.Id,
|
|
3048
|
-
* });
|
|
3049
|
-
* }
|
|
3164
|
+
* TargetType = "alb",
|
|
3165
|
+
* Port = 80,
|
|
3166
|
+
* Protocol = "TCP",
|
|
3167
|
+
* VpcId = aws_vpc.Main.Id,
|
|
3168
|
+
* });
|
|
3050
3169
|
*
|
|
3051
|
-
* }
|
|
3170
|
+
* });
|
|
3052
3171
|
* ```
|
|
3053
3172
|
* ```go
|
|
3054
3173
|
* package main
|
|
@@ -3060,7 +3179,7 @@ export declare namespace lb {
|
|
|
3060
3179
|
*
|
|
3061
3180
|
* func main() {
|
|
3062
3181
|
* pulumi.Run(func(ctx *pulumi.Context) error {
|
|
3063
|
-
* _, err := lb.NewTargetGroup(ctx, "
|
|
3182
|
+
* _, err := lb.NewTargetGroup(ctx, "alb-example", &lb.TargetGroupArgs{
|
|
3064
3183
|
* TargetType: pulumi.String("alb"),
|
|
3065
3184
|
* Port: pulumi.Int(80),
|
|
3066
3185
|
* Protocol: pulumi.String("TCP"),
|
|
@@ -3076,10 +3195,17 @@ export declare namespace lb {
|
|
|
3076
3195
|
* ```java
|
|
3077
3196
|
* package generated_program;
|
|
3078
3197
|
*
|
|
3079
|
-
* import
|
|
3080
|
-
* import
|
|
3081
|
-
* import
|
|
3082
|
-
* import com.pulumi
|
|
3198
|
+
* import com.pulumi.Context;
|
|
3199
|
+
* import com.pulumi.Pulumi;
|
|
3200
|
+
* import com.pulumi.core.Output;
|
|
3201
|
+
* import com.pulumi.aws.lb.TargetGroup;
|
|
3202
|
+
* import com.pulumi.aws.lb.TargetGroupArgs;
|
|
3203
|
+
* import java.util.List;
|
|
3204
|
+
* import java.util.ArrayList;
|
|
3205
|
+
* import java.util.Map;
|
|
3206
|
+
* import java.io.File;
|
|
3207
|
+
* import java.nio.file.Files;
|
|
3208
|
+
* import java.nio.file.Paths;
|
|
3083
3209
|
*
|
|
3084
3210
|
* public class App {
|
|
3085
3211
|
* public static void main(String[] args) {
|
|
@@ -3087,19 +3213,19 @@ export declare namespace lb {
|
|
|
3087
3213
|
* }
|
|
3088
3214
|
*
|
|
3089
3215
|
* public static void stack(Context ctx) {
|
|
3090
|
-
* var
|
|
3216
|
+
* var alb_example = new TargetGroup("alb-example", TargetGroupArgs.builder()
|
|
3091
3217
|
* .targetType("alb")
|
|
3092
3218
|
* .port(80)
|
|
3093
3219
|
* .protocol("TCP")
|
|
3094
|
-
* .vpcId(aws_vpc.
|
|
3220
|
+
* .vpcId(aws_vpc.main().id())
|
|
3095
3221
|
* .build());
|
|
3096
3222
|
*
|
|
3097
|
-
*
|
|
3223
|
+
* }
|
|
3098
3224
|
* }
|
|
3099
3225
|
* ```
|
|
3100
3226
|
* ```yaml
|
|
3101
3227
|
* resources:
|
|
3102
|
-
*
|
|
3228
|
+
* alb-example:
|
|
3103
3229
|
* type: aws:lb:TargetGroup
|
|
3104
3230
|
* properties:
|
|
3105
3231
|
* targetType: alb
|
|
@@ -3133,6 +3259,10 @@ export declare namespace lb {
|
|
|
3133
3259
|
* Health Check configuration block. Detailed below.
|
|
3134
3260
|
*/
|
|
3135
3261
|
healthCheck?: pulumi.Input<pulumiAws.types.input.lb.TargetGroupHealthCheck>;
|
|
3262
|
+
/**
|
|
3263
|
+
* The type of IP addresses used by the target group, only supported when target type is set to `ip`. Possible values are `ipv4` or `ipv6`.
|
|
3264
|
+
*/
|
|
3265
|
+
ipAddressType?: pulumi.Input<string>;
|
|
3136
3266
|
/**
|
|
3137
3267
|
* Whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies when `target_type` is `lambda`. Default is `false`.
|
|
3138
3268
|
*/
|