diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 2774f8587f4..142464bf22b 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.10.0 \ No newline at end of file +0.11.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index e68a315f5d7..180e552bad3 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -8,9 +8,9 @@ require ( github.com/aws/aws-sdk-go v1.52.0 github.com/pulumi/providertest v0.0.11 github.com/pulumi/pulumi-aws/provider/v6 v6.0.0-00010101000000-000000000000 - github.com/pulumi/pulumi-terraform-bridge/pf v0.34.0 + github.com/pulumi/pulumi-terraform-bridge/pf v0.35.0 github.com/pulumi/pulumi-terraform-bridge/testing v0.0.2-0.20230927165309-e3fd9503f2d3 - github.com/pulumi/pulumi/pkg/v3 v3.113.0 + github.com/pulumi/pulumi/pkg/v3 v3.114.0 github.com/stretchr/testify v1.9.0 ) @@ -255,7 +255,7 @@ require ( github.com/gertd/go-pluralize v0.2.1 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.11.0 // indirect + github.com/go-git/go-git/v5 v5.12.0 // indirect github.com/go-logr/logr v1.4.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect @@ -307,9 +307,9 @@ require ( github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1 // indirect github.com/hashicorp/terraform-plugin-framework-timetypes v0.3.0 // indirect github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.22.2 // indirect + github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect - github.com/hashicorp/terraform-plugin-mux v0.15.0 // indirect + github.com/hashicorp/terraform-plugin-mux v0.16.0 // indirect github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect github.com/hashicorp/terraform-plugin-testing v1.7.0 // indirect github.com/hashicorp/terraform-provider-aws v1.60.1-0.20220923175450-ca71523cdc36 // indirect @@ -358,9 +358,9 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.6.2 // indirect - github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.1-0.20240508204503-c0c57794d7bb // indirect + github.com/pulumi/pulumi-terraform-bridge/v3 v3.82.0 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.113.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.114.0 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect @@ -369,9 +369,9 @@ require ( github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect github.com/segmentio/asm v1.1.3 // indirect github.com/segmentio/encoding v0.3.5 // indirect - github.com/sergi/go-diff v1.3.1 // indirect + github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect github.com/shopspring/decimal v1.4.0 // indirect - github.com/skeema/knownhosts v1.2.1 // indirect + github.com/skeema/knownhosts v1.2.2 // indirect github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect @@ -414,7 +414,7 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.34.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect diff --git a/examples/go.sum b/examples/go.sum index 51e721485ec..8df0da5ed42 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -2115,8 +2115,9 @@ github.com/gkampitakis/go-diff v1.3.2 h1:Qyn0J9XJSDTgnsgHRdz9Zp24RaJeKMUHg2+PDZZ github.com/gkampitakis/go-diff v1.3.2/go.mod h1:LLgOrpqleQe26cte8s36HTWcTmMEur6OPYerdAAS9tk= github.com/gkampitakis/go-snaps v0.4.9 h1:x6+GEQeYWC+cnLNsHK5uXXgEQADmlH/1EqMrjfXjzk8= github.com/gkampitakis/go-snaps v0.4.9/go.mod h1:8HW4KX3JKV8M0GSw69CvT+Jqhd1AlBPMPpBfjBI3bdY= -github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= +github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= +github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= @@ -2131,8 +2132,9 @@ github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgF github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= github.com/go-git/go-git/v5 v5.10.1/go.mod h1:uEuHjxkHap8kAl//V5F/nNWwqIYtP/402ddd05mp0wg= -github.com/go-git/go-git/v5 v5.11.0 h1:XIZc1p+8YzypNr34itUfSvYJcv+eYdTnTvOZ2vD3cA4= github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lKqXmCUiUCY= +github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= +github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -2600,10 +2602,10 @@ github.com/hashicorp/terraform-plugin-framework-timetypes v0.3.0/go.mod h1:9vjvl github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= -github.com/hashicorp/terraform-plugin-go v0.22.2 h1:5o8uveu6eZUf5J7xGPV0eY0TPXg3qpmwX9sce03Bxnc= -github.com/hashicorp/terraform-plugin-go v0.22.2/go.mod h1:drq8Snexp9HsbFZddvyLHN6LuWHHndSQg+gV+FPkcIM= -github.com/hashicorp/terraform-plugin-mux v0.15.0 h1:+/+lDx0WUsIOpkAmdwBIoFU8UP9o2eZASoOnLsWbKME= -github.com/hashicorp/terraform-plugin-mux v0.15.0/go.mod h1:9ezplb1Dyq394zQ+ldB0nvy/qbNAz3mMoHHseMTMaKo= +github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= +github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= +github.com/hashicorp/terraform-plugin-mux v0.16.0 h1:RCzXHGDYwUwwqfYYWJKBFaS3fQsWn/ZECEiW7p2023I= +github.com/hashicorp/terraform-plugin-mux v0.16.0/go.mod h1:PF79mAsPc8CpusXPfEVa4X8PtkB+ngWoiUClMrNZlYo= github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs= @@ -3161,18 +3163,18 @@ github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= github.com/pulumi/providertest v0.0.11 h1:mg8MQ7Cq7+9XlHIkBD+aCqQO4mwAJEISngZgVdnQUe8= github.com/pulumi/providertest v0.0.11/go.mod h1:HsxjVsytcMIuNj19w1lT2W0QXY0oReXl1+h6eD2JXP8= -github.com/pulumi/pulumi-terraform-bridge/pf v0.34.0 h1:krNRrR9XX9sR7YEHDHjSEV5PE3AdB59vmHc4VG5MQhY= -github.com/pulumi/pulumi-terraform-bridge/pf v0.34.0/go.mod h1:TqZuTmBQhYQVP2dQFpbbz9UcckW27+hZSjAniEGW5go= +github.com/pulumi/pulumi-terraform-bridge/pf v0.35.0 h1:CqTTjZE3kIDwsBwdPVP/k1/0UUuGXg5HTG3PzbGi8ME= +github.com/pulumi/pulumi-terraform-bridge/pf v0.35.0/go.mod h1:X2hcVpFdnjoqPI5bvc5loK9ibZhK1YIv9eJ6zkW3ZIQ= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.2-0.20230927165309-e3fd9503f2d3 h1:bBWWeAtSPPYpKYlPZr2h0BiYgWQpHRIk0HO/MQmB+jc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.2-0.20230927165309-e3fd9503f2d3/go.mod h1:vAQ7DeddebQ7FHdRaSG6ijuS28FS9PC4j8Y9wUuue0c= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.1-0.20240508204503-c0c57794d7bb h1:eW9nJ5NcViF5aL0hyev4TK4D5q1bVy1exJqr36scPSE= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.1-0.20240508204503-c0c57794d7bb/go.mod h1:B8/cgXxqjfBcOx+yntCG8suxaq2h+mhe2+1LbPQ7ajI= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.82.0 h1:qCZ7ALm4xVrSLJboi4ZwkS5FRQvyzmIZni85m1iFBIw= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.82.0/go.mod h1:jXjZLukQcYrfIWxSYwSWSzPBK9BTcYGv2DDkpNKHJJw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi/pkg/v3 v3.113.0 h1:fo63QR2nB5ksqq0fxg5uPm/zbXW7eJVRdYpAawIda7I= -github.com/pulumi/pulumi/pkg/v3 v3.113.0/go.mod h1:i5hGDlTN59giiXHfrigWEo30x51FPUj8GllAlVkUcQA= -github.com/pulumi/pulumi/sdk/v3 v3.113.0 h1:CIlmxJZdjxpPPoFe/rrP1dWTwh3CB7ahs/dA6SHcbuE= -github.com/pulumi/pulumi/sdk/v3 v3.113.0/go.mod h1:JWSzKBoHd8rlncC1DhXLf7YdV+Bk/Qf+hSZOOQh0WwQ= +github.com/pulumi/pulumi/pkg/v3 v3.114.0 h1:+Ru1DfQKKmZcTYF7i+IWTaxvHX+vIWmVPyUXXksM3Uk= +github.com/pulumi/pulumi/pkg/v3 v3.114.0/go.mod h1:kNu4WL3BkF8zZ+1BTIWnEetNN1JtR4oRHWlxH2NZ6s0= +github.com/pulumi/pulumi/sdk/v3 v3.114.0 h1:KPBSvm04wE2/AdS8PlABxZAW4o7pSAnar0QOooH13no= +github.com/pulumi/pulumi/sdk/v3 v3.114.0/go.mod h1:d6LZJHqEfpgXUd8rFSSsbaPJcocZObXeaUr87jbA5MY= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= github.com/pulumi/terraform-diff-reader v0.0.2/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ= github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240229143312-4f60ee4e2975 h1:1WBy43K/lHEdS5Hliwf3ylVSfAu5s0KhhEs6wNeP11Y= @@ -3229,8 +3231,8 @@ github.com/segmentio/encoding v0.3.5/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oH github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= -github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= @@ -3248,8 +3250,9 @@ github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrf github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ= github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= +github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= @@ -4562,8 +4565,8 @@ google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= +google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/provider/go.mod b/provider/go.mod index a2b35837358..61b09a9989b 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -5,16 +5,18 @@ go 1.22.0 toolchain go1.22.2 require ( + github.com/aws/aws-sdk-go-v2/config v1.27.11 github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 + github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.52 github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 github.com/hashicorp/terraform-provider-aws v1.60.1-0.20220923175450-ca71523cdc36 github.com/mitchellh/go-homedir v1.1.0 github.com/pulumi/providertest v0.0.11 - github.com/pulumi/pulumi-terraform-bridge/pf v0.33.1-0.20240508204503-c0c57794d7bb - github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.1-0.20240508204503-c0c57794d7bb - github.com/pulumi/pulumi/pkg/v3 v3.113.0 - github.com/pulumi/pulumi/sdk/v3 v3.113.0 + github.com/pulumi/pulumi-terraform-bridge/pf v0.35.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.82.0 + github.com/pulumi/pulumi/pkg/v3 v3.114.0 + github.com/pulumi/pulumi/sdk/v3 v3.114.0 github.com/stretchr/testify v1.9.0 pgregory.net/rapid v0.6.1 ) @@ -67,7 +69,6 @@ require ( github.com/aws/aws-sdk-go v1.52.0 // indirect github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect - github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.17.11 // indirect github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect @@ -209,7 +210,6 @@ require ( github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.11.0 // indirect github.com/aws/aws-sdk-go-v2/service/route53domains v1.23.4 // indirect github.com/aws/aws-sdk-go-v2/service/route53profiles v1.0.0 // indirect - github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 // indirect github.com/aws/aws-sdk-go-v2/service/s3control v1.44.6 // indirect github.com/aws/aws-sdk-go-v2/service/scheduler v1.8.4 // indirect github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.28.6 // indirect @@ -268,7 +268,7 @@ require ( github.com/gertd/go-pluralize v0.2.1 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.11.0 // indirect + github.com/go-git/go-git/v5 v5.12.0 // indirect github.com/go-logr/logr v1.4.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect @@ -323,9 +323,9 @@ require ( github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1 // indirect github.com/hashicorp/terraform-plugin-framework-timetypes v0.3.0 // indirect github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.22.2 // indirect + github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect - github.com/hashicorp/terraform-plugin-mux v0.15.0 // indirect + github.com/hashicorp/terraform-plugin-mux v0.16.0 // indirect github.com/hashicorp/terraform-plugin-testing v1.7.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect @@ -391,9 +391,9 @@ require ( github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect github.com/segmentio/asm v1.1.3 // indirect github.com/segmentio/encoding v0.3.5 // indirect - github.com/sergi/go-diff v1.3.1 // indirect + github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect github.com/shopspring/decimal v1.4.0 // indirect - github.com/skeema/knownhosts v1.2.1 // indirect + github.com/skeema/knownhosts v1.2.2 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/cast v1.5.1 // indirect github.com/spf13/cobra v1.8.0 // indirect @@ -439,7 +439,7 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.34.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect diff --git a/provider/go.sum b/provider/go.sum index 6f6fe91d4fd..d5d5c0a9b17 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2120,8 +2120,9 @@ github.com/gkampitakis/go-diff v1.3.2 h1:Qyn0J9XJSDTgnsgHRdz9Zp24RaJeKMUHg2+PDZZ github.com/gkampitakis/go-diff v1.3.2/go.mod h1:LLgOrpqleQe26cte8s36HTWcTmMEur6OPYerdAAS9tk= github.com/gkampitakis/go-snaps v0.4.9 h1:x6+GEQeYWC+cnLNsHK5uXXgEQADmlH/1EqMrjfXjzk8= github.com/gkampitakis/go-snaps v0.4.9/go.mod h1:8HW4KX3JKV8M0GSw69CvT+Jqhd1AlBPMPpBfjBI3bdY= -github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= +github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= +github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= @@ -2136,8 +2137,9 @@ github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgF github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= github.com/go-git/go-git/v5 v5.10.1/go.mod h1:uEuHjxkHap8kAl//V5F/nNWwqIYtP/402ddd05mp0wg= -github.com/go-git/go-git/v5 v5.11.0 h1:XIZc1p+8YzypNr34itUfSvYJcv+eYdTnTvOZ2vD3cA4= github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lKqXmCUiUCY= +github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= +github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -2609,10 +2611,10 @@ github.com/hashicorp/terraform-plugin-framework-timetypes v0.3.0/go.mod h1:9vjvl github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= -github.com/hashicorp/terraform-plugin-go v0.22.2 h1:5o8uveu6eZUf5J7xGPV0eY0TPXg3qpmwX9sce03Bxnc= -github.com/hashicorp/terraform-plugin-go v0.22.2/go.mod h1:drq8Snexp9HsbFZddvyLHN6LuWHHndSQg+gV+FPkcIM= -github.com/hashicorp/terraform-plugin-mux v0.15.0 h1:+/+lDx0WUsIOpkAmdwBIoFU8UP9o2eZASoOnLsWbKME= -github.com/hashicorp/terraform-plugin-mux v0.15.0/go.mod h1:9ezplb1Dyq394zQ+ldB0nvy/qbNAz3mMoHHseMTMaKo= +github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= +github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= +github.com/hashicorp/terraform-plugin-mux v0.16.0 h1:RCzXHGDYwUwwqfYYWJKBFaS3fQsWn/ZECEiW7p2023I= +github.com/hashicorp/terraform-plugin-mux v0.16.0/go.mod h1:PF79mAsPc8CpusXPfEVa4X8PtkB+ngWoiUClMrNZlYo= github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs= @@ -3177,18 +3179,18 @@ github.com/pulumi/providertest v0.0.11 h1:mg8MQ7Cq7+9XlHIkBD+aCqQO4mwAJEISngZgVd github.com/pulumi/providertest v0.0.11/go.mod h1:HsxjVsytcMIuNj19w1lT2W0QXY0oReXl1+h6eD2JXP8= github.com/pulumi/pulumi-java/pkg v0.10.0 h1:D1i5MiiNrxYr2uJ1szcj1aQwF9DYv7TTsPmajB9dKSw= github.com/pulumi/pulumi-java/pkg v0.10.0/go.mod h1:xu6UgYtQm+xXOo1/DZNa2CWVPytu+RMkZVTtI7w7ffY= -github.com/pulumi/pulumi-terraform-bridge/pf v0.33.1-0.20240508204503-c0c57794d7bb h1:4ElhnkKEluxYk11oG8LCOghUAwLyizBmqNtXbFTzSdg= -github.com/pulumi/pulumi-terraform-bridge/pf v0.33.1-0.20240508204503-c0c57794d7bb/go.mod h1:6qtbayBR59VRykMOUJjmK/M22cJ5IynD1dLwqNXeGWM= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.1-0.20240508204503-c0c57794d7bb h1:eW9nJ5NcViF5aL0hyev4TK4D5q1bVy1exJqr36scPSE= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.1-0.20240508204503-c0c57794d7bb/go.mod h1:B8/cgXxqjfBcOx+yntCG8suxaq2h+mhe2+1LbPQ7ajI= +github.com/pulumi/pulumi-terraform-bridge/pf v0.35.0 h1:CqTTjZE3kIDwsBwdPVP/k1/0UUuGXg5HTG3PzbGi8ME= +github.com/pulumi/pulumi-terraform-bridge/pf v0.35.0/go.mod h1:X2hcVpFdnjoqPI5bvc5loK9ibZhK1YIv9eJ6zkW3ZIQ= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.82.0 h1:qCZ7ALm4xVrSLJboi4ZwkS5FRQvyzmIZni85m1iFBIw= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.82.0/go.mod h1:jXjZLukQcYrfIWxSYwSWSzPBK9BTcYGv2DDkpNKHJJw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= github.com/pulumi/pulumi-yaml v1.6.0 h1:mb/QkebWXTa1fR+P3ZkCCHGXOYC6iTN8X8By9eNz8xM= github.com/pulumi/pulumi-yaml v1.6.0/go.mod h1:RyEPo4MhL363sbAiFMVKRsQmXpQPDCY1S8pGv3E6Ij0= -github.com/pulumi/pulumi/pkg/v3 v3.113.0 h1:fo63QR2nB5ksqq0fxg5uPm/zbXW7eJVRdYpAawIda7I= -github.com/pulumi/pulumi/pkg/v3 v3.113.0/go.mod h1:i5hGDlTN59giiXHfrigWEo30x51FPUj8GllAlVkUcQA= -github.com/pulumi/pulumi/sdk/v3 v3.113.0 h1:CIlmxJZdjxpPPoFe/rrP1dWTwh3CB7ahs/dA6SHcbuE= -github.com/pulumi/pulumi/sdk/v3 v3.113.0/go.mod h1:JWSzKBoHd8rlncC1DhXLf7YdV+Bk/Qf+hSZOOQh0WwQ= +github.com/pulumi/pulumi/pkg/v3 v3.114.0 h1:+Ru1DfQKKmZcTYF7i+IWTaxvHX+vIWmVPyUXXksM3Uk= +github.com/pulumi/pulumi/pkg/v3 v3.114.0/go.mod h1:kNu4WL3BkF8zZ+1BTIWnEetNN1JtR4oRHWlxH2NZ6s0= +github.com/pulumi/pulumi/sdk/v3 v3.114.0 h1:KPBSvm04wE2/AdS8PlABxZAW4o7pSAnar0QOooH13no= +github.com/pulumi/pulumi/sdk/v3 v3.114.0/go.mod h1:d6LZJHqEfpgXUd8rFSSsbaPJcocZObXeaUr87jbA5MY= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -3248,8 +3250,8 @@ github.com/segmentio/encoding v0.3.5/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oH github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= -github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= @@ -3267,8 +3269,9 @@ github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrf github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ= github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= +github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= @@ -4583,8 +4586,8 @@ google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= +google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/provider/resources.go b/provider/resources.go index bc0efee8118..8eb250d407a 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -5889,8 +5889,6 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo { prov.MustApplyAutoAliases() - prov.XSkipDetailedDiffForChanges = true - return &prov } diff --git a/sdk/go.mod b/sdk/go.mod index f953ad0df73..0781fb6c28b 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.113.0 + github.com/pulumi/pulumi/sdk/v3 v3.114.0 ) retract ( @@ -15,7 +15,7 @@ retract ( require ( dario.cat/mergo v1.0.0 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect + github.com/ProtonMail/go-crypto v1.0.0 // indirect github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect @@ -32,12 +32,11 @@ require ( github.com/emirpasic/gods v1.18.1 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.11.0 // indirect + github.com/go-git/go-git/v5 v5.12.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.1.0 // indirect + github.com/golang/glog v1.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.3 // indirect - github.com/google/uuid v1.3.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect @@ -67,8 +66,8 @@ require ( github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect - github.com/sergi/go-diff v1.3.1 // indirect - github.com/skeema/knownhosts v1.2.1 // indirect + github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect + github.com/skeema/knownhosts v1.2.2 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect @@ -83,13 +82,13 @@ require ( golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/net v0.24.0 // indirect - golang.org/x/sync v0.5.0 // indirect + golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.19.0 // indirect golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/tools v0.15.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect - google.golang.org/grpc v1.57.1 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/grpc v1.63.2 // indirect google.golang.org/protobuf v1.34.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 1d008a12cb8..2811ec232be 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -5,8 +5,8 @@ github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXY github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= -github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 h1:kkhsdkhsCvIsutKu5zLMgWtgh9YxGCNAw8Ad8hjwfYg= -github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/ProtonMail/go-crypto v1.0.0 h1:LRuvITjQWX+WIfr930YHG2HNfjR1uOfyf5vE0kC2U78= +github.com/ProtonMail/go-crypto v1.0.0/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= @@ -52,31 +52,29 @@ github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FM github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= -github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= +github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= +github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= -github.com/go-git/go-git/v5 v5.11.0 h1:XIZc1p+8YzypNr34itUfSvYJcv+eYdTnTvOZ2vD3cA4= -github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lKqXmCUiUCY= +github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= +github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= -github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -150,8 +148,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= -github.com/pulumi/pulumi/sdk/v3 v3.113.0 h1:CIlmxJZdjxpPPoFe/rrP1dWTwh3CB7ahs/dA6SHcbuE= -github.com/pulumi/pulumi/sdk/v3 v3.113.0/go.mod h1:JWSzKBoHd8rlncC1DhXLf7YdV+Bk/Qf+hSZOOQh0WwQ= +github.com/pulumi/pulumi/sdk/v3 v3.114.0 h1:KPBSvm04wE2/AdS8PlABxZAW4o7pSAnar0QOooH13no= +github.com/pulumi/pulumi/sdk/v3 v3.114.0/go.mod h1:d6LZJHqEfpgXUd8rFSSsbaPJcocZObXeaUr87jbA5MY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -163,11 +161,11 @@ github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDj github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= -github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= -github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ= -github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= +github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= @@ -181,8 +179,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= @@ -237,8 +235,8 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= -golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= +golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -291,12 +289,10 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 h1:2FZP5XuJY9zQyGM5N0rtovnoXjiMUEIUMvw0m9wlpLc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o= -google.golang.org/grpc v1.57.1 h1:upNTNqv0ES+2ZOOqACwVtS3Il8M12/+Hz41RCPzAjQg= -google.golang.org/grpc v1.57.1/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de h1:cZGRis4/ot9uVm639a+rHCUaG0JJHEsdyzSQTMX+suY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY= +google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= +google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/sdk/go/aws/provider.go b/sdk/go/aws/provider.go index 62f8a55456e..394537a6c9c 100644 --- a/sdk/go/aws/provider.go +++ b/sdk/go/aws/provider.go @@ -21,7 +21,7 @@ type Provider struct { // The access key for API operations. You can retrieve this from the 'Security & Credentials' section of the AWS console. AccessKey pulumi.StringPtrOutput `pulumi:"accessKey"` // File containing custom root and intermediate certificates. Can also be configured using the `AWS_CA_BUNDLE` environment - // variable. (Setting `ca_bundle` in the shared config file is not supported.) + // variable. (Setting `caBundle` in the shared config file is not supported.) CustomCaBundle pulumi.StringPtrOutput `pulumi:"customCaBundle"` // Address of the EC2 metadata service endpoint to use. Can also be configured using the // `AWS_EC2_METADATA_SERVICE_ENDPOINT` environment variable. @@ -30,13 +30,13 @@ type Provider struct { // `AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE` environment variable. Ec2MetadataServiceEndpointMode pulumi.StringPtrOutput `pulumi:"ec2MetadataServiceEndpointMode"` // URL of a proxy to use for HTTP requests when accessing the AWS API. Can also be set using the `HTTP_PROXY` or - // `http_proxy` environment variables. + // `httpProxy` environment variables. HttpProxy pulumi.StringPtrOutput `pulumi:"httpProxy"` // URL of a proxy to use for HTTPS requests when accessing the AWS API. Can also be set using the `HTTPS_PROXY` or - // `https_proxy` environment variables. + // `httpsProxy` environment variables. HttpsProxy pulumi.StringPtrOutput `pulumi:"httpsProxy"` // Comma-separated list of hosts that should not use HTTP or HTTPS proxies. Can also be set using the `NO_PROXY` or - // `no_proxy` environment variables. + // `noProxy` environment variables. NoProxy pulumi.StringPtrOutput `pulumi:"noProxy"` // The profile for API operations. If not set, the default profile created with `aws configure` will be used. Profile pulumi.StringPtrOutput `pulumi:"profile"` @@ -47,7 +47,7 @@ type Provider struct { RetryMode pulumi.StringPtrOutput `pulumi:"retryMode"` // Specifies whether S3 API calls in the `us-east-1` region use the legacy global endpoint or a regional endpoint. Valid // values are `legacy` or `regional`. Can also be configured using the `AWS_S3_US_EAST_1_REGIONAL_ENDPOINT` environment - // variable or the `s3_us_east_1_regional_endpoint` shared config file parameter + // variable or the `s3UsEast1RegionalEndpoint` shared config file parameter S3UsEast1RegionalEndpoint pulumi.StringPtrOutput `pulumi:"s3UsEast1RegionalEndpoint"` // The secret key for API operations. You can retrieve this from the 'Security & Credentials' section of the AWS console. SecretKey pulumi.StringPtrOutput `pulumi:"secretKey"` @@ -109,7 +109,7 @@ type providerArgs struct { AssumeRole *ProviderAssumeRole `pulumi:"assumeRole"` AssumeRoleWithWebIdentity *ProviderAssumeRoleWithWebIdentity `pulumi:"assumeRoleWithWebIdentity"` // File containing custom root and intermediate certificates. Can also be configured using the `AWS_CA_BUNDLE` environment - // variable. (Setting `ca_bundle` in the shared config file is not supported.) + // variable. (Setting `caBundle` in the shared config file is not supported.) CustomCaBundle *string `pulumi:"customCaBundle"` // Configuration block with settings to default resource tags across all resources. DefaultTags *ProviderDefaultTags `pulumi:"defaultTags"` @@ -122,10 +122,10 @@ type providerArgs struct { Endpoints []ProviderEndpoint `pulumi:"endpoints"` ForbiddenAccountIds []string `pulumi:"forbiddenAccountIds"` // URL of a proxy to use for HTTP requests when accessing the AWS API. Can also be set using the `HTTP_PROXY` or - // `http_proxy` environment variables. + // `httpProxy` environment variables. HttpProxy *string `pulumi:"httpProxy"` // URL of a proxy to use for HTTPS requests when accessing the AWS API. Can also be set using the `HTTPS_PROXY` or - // `https_proxy` environment variables. + // `httpsProxy` environment variables. HttpsProxy *string `pulumi:"httpsProxy"` // Configuration block with settings to ignore resource tags across all resources. IgnoreTags *ProviderIgnoreTags `pulumi:"ignoreTags"` @@ -134,7 +134,7 @@ type providerArgs struct { // The maximum number of times an AWS API request is being executed. If the API request still fails, an error is thrown. MaxRetries *int `pulumi:"maxRetries"` // Comma-separated list of hosts that should not use HTTP or HTTPS proxies. Can also be set using the `NO_PROXY` or - // `no_proxy` environment variables. + // `noProxy` environment variables. NoProxy *string `pulumi:"noProxy"` // The profile for API operations. If not set, the default profile created with `aws configure` will be used. Profile *string `pulumi:"profile"` @@ -145,7 +145,7 @@ type providerArgs struct { RetryMode *string `pulumi:"retryMode"` // Specifies whether S3 API calls in the `us-east-1` region use the legacy global endpoint or a regional endpoint. Valid // values are `legacy` or `regional`. Can also be configured using the `AWS_S3_US_EAST_1_REGIONAL_ENDPOINT` environment - // variable or the `s3_us_east_1_regional_endpoint` shared config file parameter + // variable or the `s3UsEast1RegionalEndpoint` shared config file parameter S3UsEast1RegionalEndpoint *string `pulumi:"s3UsEast1RegionalEndpoint"` // Set this to true to enable the request to use path-style addressing, i.e., https://s3.amazonaws.com/BUCKET/KEY. By // default, the S3 client will use virtual hosted bucket addressing when possible (https://BUCKET.s3.amazonaws.com/KEY). @@ -187,7 +187,7 @@ type ProviderArgs struct { AssumeRole ProviderAssumeRolePtrInput AssumeRoleWithWebIdentity ProviderAssumeRoleWithWebIdentityPtrInput // File containing custom root and intermediate certificates. Can also be configured using the `AWS_CA_BUNDLE` environment - // variable. (Setting `ca_bundle` in the shared config file is not supported.) + // variable. (Setting `caBundle` in the shared config file is not supported.) CustomCaBundle pulumi.StringPtrInput // Configuration block with settings to default resource tags across all resources. DefaultTags ProviderDefaultTagsPtrInput @@ -200,10 +200,10 @@ type ProviderArgs struct { Endpoints ProviderEndpointArrayInput ForbiddenAccountIds pulumi.StringArrayInput // URL of a proxy to use for HTTP requests when accessing the AWS API. Can also be set using the `HTTP_PROXY` or - // `http_proxy` environment variables. + // `httpProxy` environment variables. HttpProxy pulumi.StringPtrInput // URL of a proxy to use for HTTPS requests when accessing the AWS API. Can also be set using the `HTTPS_PROXY` or - // `https_proxy` environment variables. + // `httpsProxy` environment variables. HttpsProxy pulumi.StringPtrInput // Configuration block with settings to ignore resource tags across all resources. IgnoreTags ProviderIgnoreTagsPtrInput @@ -212,7 +212,7 @@ type ProviderArgs struct { // The maximum number of times an AWS API request is being executed. If the API request still fails, an error is thrown. MaxRetries pulumi.IntPtrInput // Comma-separated list of hosts that should not use HTTP or HTTPS proxies. Can also be set using the `NO_PROXY` or - // `no_proxy` environment variables. + // `noProxy` environment variables. NoProxy pulumi.StringPtrInput // The profile for API operations. If not set, the default profile created with `aws configure` will be used. Profile pulumi.StringPtrInput @@ -223,7 +223,7 @@ type ProviderArgs struct { RetryMode pulumi.StringPtrInput // Specifies whether S3 API calls in the `us-east-1` region use the legacy global endpoint or a regional endpoint. Valid // values are `legacy` or `regional`. Can also be configured using the `AWS_S3_US_EAST_1_REGIONAL_ENDPOINT` environment - // variable or the `s3_us_east_1_regional_endpoint` shared config file parameter + // variable or the `s3UsEast1RegionalEndpoint` shared config file parameter S3UsEast1RegionalEndpoint pulumi.StringPtrInput // Set this to true to enable the request to use path-style addressing, i.e., https://s3.amazonaws.com/BUCKET/KEY. By // default, the S3 client will use virtual hosted bucket addressing when possible (https://BUCKET.s3.amazonaws.com/KEY). @@ -300,7 +300,7 @@ func (o ProviderOutput) AccessKey() pulumi.StringPtrOutput { } // File containing custom root and intermediate certificates. Can also be configured using the `AWS_CA_BUNDLE` environment -// variable. (Setting `ca_bundle` in the shared config file is not supported.) +// variable. (Setting `caBundle` in the shared config file is not supported.) func (o ProviderOutput) CustomCaBundle() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.CustomCaBundle }).(pulumi.StringPtrOutput) } @@ -318,19 +318,19 @@ func (o ProviderOutput) Ec2MetadataServiceEndpointMode() pulumi.StringPtrOutput } // URL of a proxy to use for HTTP requests when accessing the AWS API. Can also be set using the `HTTP_PROXY` or -// `http_proxy` environment variables. +// `httpProxy` environment variables. func (o ProviderOutput) HttpProxy() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.HttpProxy }).(pulumi.StringPtrOutput) } // URL of a proxy to use for HTTPS requests when accessing the AWS API. Can also be set using the `HTTPS_PROXY` or -// `https_proxy` environment variables. +// `httpsProxy` environment variables. func (o ProviderOutput) HttpsProxy() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.HttpsProxy }).(pulumi.StringPtrOutput) } // Comma-separated list of hosts that should not use HTTP or HTTPS proxies. Can also be set using the `NO_PROXY` or -// `no_proxy` environment variables. +// `noProxy` environment variables. func (o ProviderOutput) NoProxy() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.NoProxy }).(pulumi.StringPtrOutput) } @@ -353,7 +353,7 @@ func (o ProviderOutput) RetryMode() pulumi.StringPtrOutput { // Specifies whether S3 API calls in the `us-east-1` region use the legacy global endpoint or a regional endpoint. Valid // values are `legacy` or `regional`. Can also be configured using the `AWS_S3_US_EAST_1_REGIONAL_ENDPOINT` environment -// variable or the `s3_us_east_1_regional_endpoint` shared config file parameter +// variable or the `s3UsEast1RegionalEndpoint` shared config file parameter func (o ProviderOutput) S3UsEast1RegionalEndpoint() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.S3UsEast1RegionalEndpoint }).(pulumi.StringPtrOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 106cafff43b..961b1046259 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.10.0") + implementation("com.pulumi:pulumi:0.11.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/aws/AwsFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/AwsFunctions.java index deba4bd2073..b2ba68d018c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/AwsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/AwsFunctions.java @@ -50,7 +50,8 @@ public final class AwsFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -72,12 +73,13 @@ public final class AwsFunctions { * * public static void stack(Context ctx) { * final var dbInstance = AwsFunctions.getArn(GetArnArgs.builder() - * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") + * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ @@ -90,7 +92,8 @@ public static Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -112,12 +115,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -130,7 +134,8 @@ public static CompletableFuturegetArn(GetArnArgs args) { * * public static void stack(Context ctx) { * final var dbInstance = AwsFunctions.getArn(GetArnArgs.builder() - * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") + * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -152,12 +157,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -170,7 +176,8 @@ public static OutputgetArnPlain(GetArnPlainArgs args) * * public static void stack(Context ctx) { * final var dbInstance = AwsFunctions.getArn(GetArnArgs.builder() - * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") + * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -192,12 +199,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -223,7 +231,8 @@ public static CompletableFuturegetArn(GetArnArgs args, InvokeOptions options * * public static void stack(Context ctx) { * final var dbInstance = AwsFunctions.getArn(GetArnArgs.builder() - * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") + * .arn("arn:aws:rds:eu-west-1:123456789012:db:mysql-db") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -249,32 +258,33 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -300,7 +310,8 @@ public static OutputgetArnPlain(GetArnPlainArgs args, * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); - * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); * // Retrieve the AZ where we want to create network resources * // This must be in the region selected on the AWS provider. * final var example = AwsFunctions.getAvailabilityZone(GetAvailabilityZoneArgs.builder() - * .name("eu-central-1a") + * .name("eu-central-1a") * .build()); * * // Create a VPC for the region associated with the AZ - * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() + * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() * .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder() - * .input("10.0.0.0/8") + * .input("10.0.0.0/8") * .newbits(4) - * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) + * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) * .build()).result()) * .build()); * * // Create a subnet for the AZ within the regional VPC - * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() + * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() * .vpcId(exampleVpc.id()) - * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) + * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -326,32 +337,33 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -377,7 +389,8 @@ public static CompletableFuturegetAvailabilityZone() { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); - * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); * // Retrieve the AZ where we want to create network resources * // This must be in the region selected on the AWS provider. * final var example = AwsFunctions.getAvailabilityZone(GetAvailabilityZoneArgs.builder() - * .name("eu-central-1a") + * .name("eu-central-1a") * .build()); * * // Create a VPC for the region associated with the AZ - * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() + * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() * .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder() - * .input("10.0.0.0/8") + * .input("10.0.0.0/8") * .newbits(4) - * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) + * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) * .build()).result()) * .build()); * * // Create a subnet for the AZ within the regional VPC - * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() + * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() * .vpcId(exampleVpc.id()) - * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) + * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -403,32 +416,33 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -454,7 +468,8 @@ public static OutputgetAvailabilityZonePl * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); - * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); * // Retrieve the AZ where we want to create network resources * // This must be in the region selected on the AWS provider. * final var example = AwsFunctions.getAvailabilityZone(GetAvailabilityZoneArgs.builder() - * .name("eu-central-1a") + * .name("eu-central-1a") * .build()); * * // Create a VPC for the region associated with the AZ - * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() + * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() * .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder() - * .input("10.0.0.0/8") + * .input("10.0.0.0/8") * .newbits(4) - * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) + * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) * .build()).result()) * .build()); * * // Create a subnet for the AZ within the regional VPC - * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() + * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() * .vpcId(exampleVpc.id()) - * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) + * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -480,32 +495,33 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -531,7 +547,8 @@ public static CompletableFuturegetAvailabilityZone(GetAvailabil * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); - * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); * // Retrieve the AZ where we want to create network resources * // This must be in the region selected on the AWS provider. * final var example = AwsFunctions.getAvailabilityZone(GetAvailabilityZoneArgs.builder() - * .name("eu-central-1a") + * .name("eu-central-1a") * .build()); * * // Create a VPC for the region associated with the AZ - * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() + * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() * .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder() - * .input("10.0.0.0/8") + * .input("10.0.0.0/8") * .newbits(4) - * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) + * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) * .build()).result()) * .build()); * * // Create a subnet for the AZ within the regional VPC - * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() + * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() * .vpcId(exampleVpc.id()) - * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) + * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -557,32 +574,33 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -608,7 +626,8 @@ public static OutputgetAvailabilityZonePl * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); - * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); * // Retrieve the AZ where we want to create network resources * // This must be in the region selected on the AWS provider. * final var example = AwsFunctions.getAvailabilityZone(GetAvailabilityZoneArgs.builder() - * .name("eu-central-1a") + * .name("eu-central-1a") * .build()); * * // Create a VPC for the region associated with the AZ - * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() + * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() * .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder() - * .input("10.0.0.0/8") + * .input("10.0.0.0/8") * .newbits(4) - * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) + * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) * .build()).result()) * .build()); * * // Create a subnet for the AZ within the regional VPC - * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() + * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() * .vpcId(exampleVpc.id()) - * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) + * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -634,32 +653,33 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -681,7 +701,8 @@ public static CompletableFuturegetAvailabilityZone(GetAvailabil * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); - * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var regionNumber = config.get("regionNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); + * final var azNumber = config.get("azNumber").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)); * // Retrieve the AZ where we want to create network resources * // This must be in the region selected on the AWS provider. * final var example = AwsFunctions.getAvailabilityZone(GetAvailabilityZoneArgs.builder() - * .name("eu-central-1a") + * .name("eu-central-1a") * .build()); * * // Create a VPC for the region associated with the AZ - * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() + * var exampleVpc = new Vpc("exampleVpc", VpcArgs.builder() * .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder() - * .input("10.0.0.0/8") + * .input("10.0.0.0/8") * .newbits(4) - * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) + * .netnum(regionNumber[example.applyValue(getAvailabilityZoneResult -> getAvailabilityZoneResult.region())]) * .build()).result()) * .build()); * * // Create a subnet for the AZ within the regional VPC - * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() + * var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder() * .vpcId(exampleVpc.id()) - * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) + * .cidrBlock(exampleVpc.cidrBlock().applyValue(cidrBlock -> StdFunctions.cidrsubnet()).applyValue(invoke -> invoke.result())) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -706,21 +727,22 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### By Filter @@ -728,7 +750,8 @@ public static CompletableFuturegetAvailabilityZonePl * public static void stack(Context ctx) { * // Declare the data source * final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() - * .state("available") + * .state("available") * .build()); * * // e.g., Create subnets in the first two available availability zones - * var primary = new Subnet("primary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) + * var primary = new Subnet("primary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) * .build()); * - * var secondary = new Subnet("secondary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) + * var secondary = new Subnet("secondary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -752,22 +775,24 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * Only Availability Zones (no Local Zones): * * <!--Start PulumiCodeChooser --> - * ```java + *getAvailabilityZonePl * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .allAvailabilityZones(true) * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") + * .name("opt-in-status") * .values( - * "not-opted-in", - * "opted-in") + * "not-opted-in", + * "opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -790,14 +815,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -819,7 +845,8 @@ public static OutputgetAvailabilityZonePl * public static void stack(Context ctx) { * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") - * .values("opt-in-not-required") + * .name("opt-in-status") + * .values("opt-in-not-required") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -844,21 +871,22 @@ public static Output* <!--End PulumiCodeChooser --> * * ### By Filter @@ -866,7 +894,8 @@ public static OutputgetAvailabilityZones() { * public static void stack(Context ctx) { * // Declare the data source * final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() - * .state("available") + * .state("available") * .build()); * * // e.g., Create subnets in the first two available availability zones - * var primary = new Subnet("primary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) + * var primary = new Subnet("primary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) * .build()); * - * var secondary = new Subnet("secondary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) + * var secondary = new Subnet("secondary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -890,22 +919,24 @@ public static Output* <!--End PulumiCodeChooser --> * * Only Availability Zones (no Local Zones): * * <!--Start PulumiCodeChooser --> - * ```java + *getAvailabilityZones() { * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .allAvailabilityZones(true) * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") + * .name("opt-in-status") * .values( - * "not-opted-in", - * "opted-in") + * "not-opted-in", + * "opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -928,14 +959,15 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -957,7 +989,8 @@ public static CompletableFuturegetAvailabilityZones() { * public static void stack(Context ctx) { * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") - * .values("opt-in-not-required") + * .name("opt-in-status") + * .values("opt-in-not-required") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -982,21 +1015,22 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### By Filter @@ -1004,7 +1038,8 @@ public static CompletableFuturegetAvailabilityZones * public static void stack(Context ctx) { * // Declare the data source * final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() - * .state("available") + * .state("available") * .build()); * * // e.g., Create subnets in the first two available availability zones - * var primary = new Subnet("primary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) + * var primary = new Subnet("primary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) * .build()); * - * var secondary = new Subnet("secondary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) + * var secondary = new Subnet("secondary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1028,22 +1063,24 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * Only Availability Zones (no Local Zones): * * <!--Start PulumiCodeChooser --> - * ```java + *getAvailabilityZones * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .allAvailabilityZones(true) * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") + * .name("opt-in-status") * .values( - * "not-opted-in", - * "opted-in") + * "not-opted-in", + * "opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1066,14 +1103,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1095,7 +1133,8 @@ public static OutputgetAvailabilityZones * public static void stack(Context ctx) { * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") - * .values("opt-in-not-required") + * .name("opt-in-status") + * .values("opt-in-not-required") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1120,21 +1159,22 @@ public static Output* <!--End PulumiCodeChooser --> * * ### By Filter @@ -1142,7 +1182,8 @@ public static OutputgetAvailabilityZones(GetAvailab * public static void stack(Context ctx) { * // Declare the data source * final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() - * .state("available") + * .state("available") * .build()); * * // e.g., Create subnets in the first two available availability zones - * var primary = new Subnet("primary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) + * var primary = new Subnet("primary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) * .build()); * - * var secondary = new Subnet("secondary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) + * var secondary = new Subnet("secondary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1166,22 +1207,24 @@ public static Output* <!--End PulumiCodeChooser --> * * Only Availability Zones (no Local Zones): * * <!--Start PulumiCodeChooser --> - * ```java + *getAvailabilityZones(GetAvailab * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .allAvailabilityZones(true) * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") + * .name("opt-in-status") * .values( - * "not-opted-in", - * "opted-in") + * "not-opted-in", + * "opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1204,14 +1247,15 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1233,7 +1277,8 @@ public static CompletableFuturegetAvailabilityZones(GetAvailab * public static void stack(Context ctx) { * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") - * .values("opt-in-not-required") + * .name("opt-in-status") + * .values("opt-in-not-required") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1258,21 +1303,22 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### By Filter @@ -1280,7 +1326,8 @@ public static CompletableFuturegetAvailabilityZones * public static void stack(Context ctx) { * // Declare the data source * final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() - * .state("available") + * .state("available") * .build()); * * // e.g., Create subnets in the first two available availability zones - * var primary = new Subnet("primary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) + * var primary = new Subnet("primary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) * .build()); * - * var secondary = new Subnet("secondary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) + * var secondary = new Subnet("secondary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1304,22 +1351,24 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * Only Availability Zones (no Local Zones): * * <!--Start PulumiCodeChooser --> - * ```java + *getAvailabilityZones * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .allAvailabilityZones(true) * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") + * .name("opt-in-status") * .values( - * "not-opted-in", - * "opted-in") + * "not-opted-in", + * "opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1342,14 +1391,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1371,7 +1421,8 @@ public static OutputgetAvailabilityZones * public static void stack(Context ctx) { * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") - * .values("opt-in-not-required") + * .name("opt-in-status") + * .values("opt-in-not-required") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1396,21 +1447,22 @@ public static Output* <!--End PulumiCodeChooser --> * * ### By Filter @@ -1418,7 +1470,8 @@ public static OutputgetAvailabilityZones(GetAvailab * public static void stack(Context ctx) { * // Declare the data source * final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() - * .state("available") + * .state("available") * .build()); * * // e.g., Create subnets in the first two available availability zones - * var primary = new Subnet("primary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) + * var primary = new Subnet("primary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0])) * .build()); * - * var secondary = new Subnet("secondary", SubnetArgs.builder() - * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) + * var secondary = new Subnet("secondary", SubnetArgs.builder() + * .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1])) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1442,22 +1495,24 @@ public static Output* <!--End PulumiCodeChooser --> * * Only Availability Zones (no Local Zones): * * <!--Start PulumiCodeChooser --> - * ```java + *getAvailabilityZones(GetAvailab * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .allAvailabilityZones(true) * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") + * .name("opt-in-status") * .values( - * "not-opted-in", - * "opted-in") + * "not-opted-in", + * "opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1480,14 +1535,15 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1500,7 +1556,8 @@ public static CompletableFuturegetAvailabilityZones(GetAvailab * public static void stack(Context ctx) { * final var example = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder() * .filters(GetAvailabilityZonesFilterArgs.builder() - * .name("opt-in-status") - * .values("opt-in-not-required") + * .name("opt-in-status") + * .values("opt-in-not-required") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1531,47 +1588,48 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1584,7 +1642,8 @@ public static OutputgetAvailabilityZones * public static void stack(Context ctx) { * final var main = AwsFunctions.getBillingServiceAccount(); * - * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() - * .bucket("my-billing-tf-test-bucket") + * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() + * .bucket("my-billing-tf-test-bucket") * .build()); * - * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() + * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() * .bucket(billingLogs.id()) - * .acl("private") + * .acl("private") * .build()); * * final var allowBillingLogging = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements( * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) * .actions( - * "s3:GetBucketAcl", - * "s3:GetBucketPolicy") + * "s3:GetBucketAcl", + * "s3:GetBucketPolicy") * .resources(billingLogs.arn()) * .build(), * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) - * .actions("s3:PutObject") - * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) + * .actions("s3:PutObject") + * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) * .build()) * .build()); * - * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() + * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() * .bucket(billingLogs.id()) - * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1615,47 +1674,48 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1668,7 +1728,8 @@ public static CompletableFuturegetBillingServiceAccount() * public static void stack(Context ctx) { * final var main = AwsFunctions.getBillingServiceAccount(); * - * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() - * .bucket("my-billing-tf-test-bucket") + * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() + * .bucket("my-billing-tf-test-bucket") * .build()); * - * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() + * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() * .bucket(billingLogs.id()) - * .acl("private") + * .acl("private") * .build()); * * final var allowBillingLogging = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements( * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) * .actions( - * "s3:GetBucketAcl", - * "s3:GetBucketPolicy") + * "s3:GetBucketAcl", + * "s3:GetBucketPolicy") * .resources(billingLogs.arn()) * .build(), * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) - * .actions("s3:PutObject") - * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) + * .actions("s3:PutObject") + * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) * .build()) * .build()); * - * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() + * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() * .bucket(billingLogs.id()) - * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1699,47 +1760,48 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1752,7 +1814,8 @@ public static OutputgetBillingServic * public static void stack(Context ctx) { * final var main = AwsFunctions.getBillingServiceAccount(); * - * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() - * .bucket("my-billing-tf-test-bucket") + * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() + * .bucket("my-billing-tf-test-bucket") * .build()); * - * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() + * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() * .bucket(billingLogs.id()) - * .acl("private") + * .acl("private") * .build()); * * final var allowBillingLogging = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements( * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) * .actions( - * "s3:GetBucketAcl", - * "s3:GetBucketPolicy") + * "s3:GetBucketAcl", + * "s3:GetBucketPolicy") * .resources(billingLogs.arn()) * .build(), * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) - * .actions("s3:PutObject") - * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) + * .actions("s3:PutObject") + * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) * .build()) * .build()); * - * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() + * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() * .bucket(billingLogs.id()) - * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1783,47 +1846,48 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1836,7 +1900,8 @@ public static CompletableFuturegetBillingServiceAccount(Ge * public static void stack(Context ctx) { * final var main = AwsFunctions.getBillingServiceAccount(); * - * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() - * .bucket("my-billing-tf-test-bucket") + * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() + * .bucket("my-billing-tf-test-bucket") * .build()); * - * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() + * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() * .bucket(billingLogs.id()) - * .acl("private") + * .acl("private") * .build()); * * final var allowBillingLogging = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements( * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) * .actions( - * "s3:GetBucketAcl", - * "s3:GetBucketPolicy") + * "s3:GetBucketAcl", + * "s3:GetBucketPolicy") * .resources(billingLogs.arn()) * .build(), * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) - * .actions("s3:PutObject") - * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) + * .actions("s3:PutObject") + * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) * .build()) * .build()); * - * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() + * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() * .bucket(billingLogs.id()) - * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1867,47 +1932,48 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1920,7 +1986,8 @@ public static OutputgetBillingServic * public static void stack(Context ctx) { * final var main = AwsFunctions.getBillingServiceAccount(); * - * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() - * .bucket("my-billing-tf-test-bucket") + * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() + * .bucket("my-billing-tf-test-bucket") * .build()); * - * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() + * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() * .bucket(billingLogs.id()) - * .acl("private") + * .acl("private") * .build()); * * final var allowBillingLogging = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements( * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) * .actions( - * "s3:GetBucketAcl", - * "s3:GetBucketPolicy") + * "s3:GetBucketAcl", + * "s3:GetBucketPolicy") * .resources(billingLogs.arn()) * .build(), * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) - * .actions("s3:PutObject") - * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) + * .actions("s3:PutObject") + * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) * .build()) * .build()); * - * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() + * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() * .bucket(billingLogs.id()) - * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1951,47 +2018,48 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2005,7 +2073,8 @@ public static CompletableFuturegetBillingServiceAccount(Ge * public static void stack(Context ctx) { * final var main = AwsFunctions.getBillingServiceAccount(); * - * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() - * .bucket("my-billing-tf-test-bucket") + * var billingLogs = new BucketV2("billingLogs", BucketV2Args.builder() + * .bucket("my-billing-tf-test-bucket") * .build()); * - * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() + * var billingLogsAcl = new BucketAclV2("billingLogsAcl", BucketAclV2Args.builder() * .bucket(billingLogs.id()) - * .acl("private") + * .acl("private") * .build()); * * final var allowBillingLogging = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements( * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) * .actions( - * "s3:GetBucketAcl", - * "s3:GetBucketPolicy") + * "s3:GetBucketAcl", + * "s3:GetBucketPolicy") * .resources(billingLogs.arn()) * .build(), * GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) + * .type("AWS") + * .identifiers(main.applyValue(getBillingServiceAccountResult -> getBillingServiceAccountResult.arn())) * .build()) - * .actions("s3:PutObject") - * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) + * .actions("s3:PutObject") + * .resources(billingLogs.arn().applyValue(arn -> String.format("%s/*", arn))) * .build()) * .build()); * - * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() + * var allowBillingLoggingBucketPolicy = new BucketPolicy("allowBillingLoggingBucketPolicy", BucketPolicyArgs.builder() * .bucket(billingLogs.id()) - * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(allowBillingLogging -> allowBillingLogging.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2028,12 +2097,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -2047,7 +2117,8 @@ public static OutputgetBillingServic * public static void stack(Context ctx) { * final var current = AwsFunctions.getCallerIdentity(); * - * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); - * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); - * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); + * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); + * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); + * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2070,12 +2141,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2089,7 +2161,8 @@ public static CompletableFuturegetCallerIdentity() { * public static void stack(Context ctx) { * final var current = AwsFunctions.getCallerIdentity(); * - * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); - * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); - * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); + * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); + * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); + * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2112,12 +2185,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -2131,7 +2205,8 @@ public static OutputgetCallerIdentityPlain( * public static void stack(Context ctx) { * final var current = AwsFunctions.getCallerIdentity(); * - * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); - * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); - * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); + * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); + * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); + * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2154,12 +2229,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2173,7 +2249,8 @@ public static CompletableFuturegetCallerIdentity(GetCallerIdentit * public static void stack(Context ctx) { * final var current = AwsFunctions.getCallerIdentity(); * - * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); - * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); - * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); + * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); + * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); + * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2196,12 +2273,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -2215,7 +2293,8 @@ public static OutputgetCallerIdentityPlain( * public static void stack(Context ctx) { * final var current = AwsFunctions.getCallerIdentity(); * - * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); - * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); - * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); + * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); + * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); + * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2238,12 +2317,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2260,7 +2340,8 @@ public static CompletableFuturegetCallerIdentity(GetCallerIdentit * public static void stack(Context ctx) { * final var current = AwsFunctions.getCallerIdentity(); * - * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); - * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); - * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); + * ctx.export("accountId", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())); + * ctx.export("callerArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn())); + * ctx.export("callerUser", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.userId())); * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2285,7 +2366,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Dynamically Apply Default Tags to Auto Scaling Group @@ -2307,7 +2389,8 @@ public static OutputgetCallerIdentityPlain( * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2332,7 +2415,8 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Dynamically Apply Default Tags to Auto Scaling Group @@ -2354,7 +2438,8 @@ public static CompletableFuturegetDefaultTags() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2379,7 +2464,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Dynamically Apply Default Tags to Auto Scaling Group @@ -2401,7 +2487,8 @@ public static OutputgetDefaultTagsPlain() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2426,7 +2513,8 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Dynamically Apply Default Tags to Auto Scaling Group @@ -2448,7 +2536,8 @@ public static CompletableFuturegetDefaultTags(GetDefaultTagsArgs arg * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2473,7 +2562,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Dynamically Apply Default Tags to Auto Scaling Group @@ -2495,7 +2585,8 @@ public static OutputgetDefaultTagsPlain(GetDef * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2520,7 +2611,8 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Dynamically Apply Default Tags to Auto Scaling Group @@ -2538,7 +2630,8 @@ public static CompletableFuturegetDefaultTags(GetDefaultTagsArgs arg * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2564,29 +2657,30 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -2599,7 +2693,8 @@ public static OutputgetDefaultTagsPlain(GetDef * public static void stack(Context ctx) { * final var europeanEc2 = AwsFunctions.getIpRanges(GetIpRangesArgs.builder() * .regions( - * "eu-west-1", - * "eu-central-1") - * .services("ec2") + * "eu-west-1", + * "eu-central-1") + * .services("ec2") * .build()); * - * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() - * .name("from_europe") + * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() + * .name("from_europe") * .ingress(SecurityGroupIngressArgs.builder() - * .fromPort("443") - * .toPort("443") - * .protocol("tcp") - * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) - * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) + * .fromPort("443") + * .toPort("443") + * .protocol("tcp") + * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) + * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) * .build()) * .tags(Map.ofEntries( - * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), - * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) + * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), + * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2625,29 +2720,30 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2660,7 +2756,8 @@ public static CompletableFuturegetIpRanges(GetIpRangesArgs args) { * public static void stack(Context ctx) { * final var europeanEc2 = AwsFunctions.getIpRanges(GetIpRangesArgs.builder() * .regions( - * "eu-west-1", - * "eu-central-1") - * .services("ec2") + * "eu-west-1", + * "eu-central-1") + * .services("ec2") * .build()); * - * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() - * .name("from_europe") + * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() + * .name("from_europe") * .ingress(SecurityGroupIngressArgs.builder() - * .fromPort("443") - * .toPort("443") - * .protocol("tcp") - * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) - * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) + * .fromPort("443") + * .toPort("443") + * .protocol("tcp") + * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) + * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) * .build()) * .tags(Map.ofEntries( - * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), - * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) + * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), + * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2686,29 +2783,30 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -2721,7 +2819,8 @@ public static OutputgetIpRangesPlain(GetIpRangesP * public static void stack(Context ctx) { * final var europeanEc2 = AwsFunctions.getIpRanges(GetIpRangesArgs.builder() * .regions( - * "eu-west-1", - * "eu-central-1") - * .services("ec2") + * "eu-west-1", + * "eu-central-1") + * .services("ec2") * .build()); * - * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() - * .name("from_europe") + * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() + * .name("from_europe") * .ingress(SecurityGroupIngressArgs.builder() - * .fromPort("443") - * .toPort("443") - * .protocol("tcp") - * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) - * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) + * .fromPort("443") + * .toPort("443") + * .protocol("tcp") + * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) + * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) * .build()) * .tags(Map.ofEntries( - * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), - * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) + * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), + * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2747,29 +2846,30 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2783,7 +2883,8 @@ public static CompletableFuturegetIpRanges(GetIpRangesArgs args, Invoke * public static void stack(Context ctx) { * final var europeanEc2 = AwsFunctions.getIpRanges(GetIpRangesArgs.builder() * .regions( - * "eu-west-1", - * "eu-central-1") - * .services("ec2") + * "eu-west-1", + * "eu-central-1") + * .services("ec2") * .build()); * - * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() - * .name("from_europe") + * var fromEurope = new SecurityGroup("fromEurope", SecurityGroupArgs.builder() + * .name("from_europe") * .ingress(SecurityGroupIngressArgs.builder() - * .fromPort("443") - * .toPort("443") - * .protocol("tcp") - * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) - * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) + * .fromPort("443") + * .toPort("443") + * .protocol("tcp") + * .cidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.cidrBlocks())) + * .ipv6CidrBlocks(europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.ipv6CidrBlocks())) * .build()) * .tags(Map.ofEntries( - * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), - * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) + * Map.entry("CreateDate", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.createDate())), + * Map.entry("SyncToken", europeanEc2.applyValue(getIpRangesResult -> getIpRangesResult.syncToken())) * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2810,15 +2911,16 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -2832,7 +2934,8 @@ public static OutputgetIpRangesPlain(GetIpRangesP * * final var s3Policy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .sid("1") - * .actions("s3:ListBucket") - * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .sid("1") + * .actions("s3:ListBucket") + * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2859,15 +2962,16 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2881,7 +2985,8 @@ public static CompletableFuturegetPartition() { * * final var s3Policy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .sid("1") - * .actions("s3:ListBucket") - * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .sid("1") + * .actions("s3:ListBucket") + * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2908,15 +3013,16 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -2930,7 +3036,8 @@ public static OutputgetPartitionPlain() { * * final var s3Policy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .sid("1") - * .actions("s3:ListBucket") - * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .sid("1") + * .actions("s3:ListBucket") + * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -2957,15 +3064,16 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -2979,7 +3087,8 @@ public static CompletableFuturegetPartition(GetPartitionArgs args) { * * final var s3Policy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .sid("1") - * .actions("s3:ListBucket") - * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .sid("1") + * .actions("s3:ListBucket") + * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3006,15 +3115,16 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -3028,7 +3138,8 @@ public static OutputgetPartitionPlain(GetPartiti * * final var s3Policy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .sid("1") - * .actions("s3:ListBucket") - * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .sid("1") + * .actions("s3:ListBucket") + * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3055,15 +3166,16 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -3084,7 +3196,8 @@ public static CompletableFuturegetPartition(GetPartitionArgs args, Inv * * final var s3Policy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .sid("1") - * .actions("s3:ListBucket") - * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .sid("1") + * .actions("s3:ListBucket") + * .resources(String.format("arn:%s:s3:::my-bucket", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3109,7 +3222,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -3130,7 +3244,8 @@ public static OutputgetPartitionPlain(GetPartiti * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3155,7 +3270,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -3176,7 +3292,8 @@ public static CompletableFuturegetRegion() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3201,7 +3318,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -3222,7 +3340,8 @@ public static OutputgetRegionPlain() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3247,7 +3366,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -3268,7 +3388,8 @@ public static CompletableFuturegetRegion(GetRegionArgs args) { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3293,7 +3414,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -3314,7 +3436,8 @@ public static OutputgetRegionPlain(GetRegionPlainAr * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3339,7 +3462,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -3354,7 +3478,8 @@ public static CompletableFuturegetRegion(GetRegionArgs args, InvokeOption * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3379,13 +3504,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * All the regions regardless of the availability * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionPlain(GetRegionPlainAr * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3412,13 +3539,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * To see regions that are filtered by `"not-opted-in"`, the `all_regions` argument needs to be set to `true` or no results will be returned. * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionPlain(GetRegionPlainAr * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3442,14 +3571,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -3464,7 +3594,8 @@ public static OutputgetRegionPlain(GetRegionPlainAr * final var current = AwsFunctions.getRegions(GetRegionsArgs.builder() * .allRegions(true) * .filters(GetRegionsFilterArgs.builder() - * .name("opt-in-status") - * .values("not-opted-in") + * .name("opt-in-status") + * .values("not-opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3489,13 +3620,15 @@ public static Output* <!--End PulumiCodeChooser --> * * All the regions regardless of the availability * * <!--Start PulumiCodeChooser --> - * ```java + *getRegions() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3522,13 +3655,15 @@ public static Output* <!--End PulumiCodeChooser --> * * To see regions that are filtered by `"not-opted-in"`, the `all_regions` argument needs to be set to `true` or no results will be returned. * * <!--Start PulumiCodeChooser --> - * ```java + *getRegions() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3552,14 +3687,15 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -3574,7 +3710,8 @@ public static CompletableFuturegetRegions() { * final var current = AwsFunctions.getRegions(GetRegionsArgs.builder() * .allRegions(true) * .filters(GetRegionsFilterArgs.builder() - * .name("opt-in-status") - * .values("not-opted-in") + * .name("opt-in-status") + * .values("not-opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3599,13 +3736,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * All the regions regardless of the availability * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionsPlain() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3632,13 +3771,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * To see regions that are filtered by `"not-opted-in"`, the `all_regions` argument needs to be set to `true` or no results will be returned. * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionsPlain() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3662,14 +3803,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -3684,7 +3826,8 @@ public static OutputgetRegionsPlain() { * final var current = AwsFunctions.getRegions(GetRegionsArgs.builder() * .allRegions(true) * .filters(GetRegionsFilterArgs.builder() - * .name("opt-in-status") - * .values("not-opted-in") + * .name("opt-in-status") + * .values("not-opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3709,13 +3852,15 @@ public static Output* <!--End PulumiCodeChooser --> * * All the regions regardless of the availability * * <!--Start PulumiCodeChooser --> - * ```java + *getRegions(GetRegionsArgs args) { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3742,13 +3887,15 @@ public static Output* <!--End PulumiCodeChooser --> * * To see regions that are filtered by `"not-opted-in"`, the `all_regions` argument needs to be set to `true` or no results will be returned. * * <!--Start PulumiCodeChooser --> - * ```java + *getRegions(GetRegionsArgs args) { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3772,14 +3919,15 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -3794,7 +3942,8 @@ public static CompletableFuturegetRegions(GetRegionsArgs args) { * final var current = AwsFunctions.getRegions(GetRegionsArgs.builder() * .allRegions(true) * .filters(GetRegionsFilterArgs.builder() - * .name("opt-in-status") - * .values("not-opted-in") + * .name("opt-in-status") + * .values("not-opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3819,13 +3968,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * All the regions regardless of the availability * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionsPlain(GetRegionsPlai * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3852,13 +4003,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * To see regions that are filtered by `"not-opted-in"`, the `all_regions` argument needs to be set to `true` or no results will be returned. * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionsPlain(GetRegionsPlai * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3882,14 +4035,15 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -3904,7 +4058,8 @@ public static OutputgetRegionsPlain(GetRegionsPlai * final var current = AwsFunctions.getRegions(GetRegionsArgs.builder() * .allRegions(true) * .filters(GetRegionsFilterArgs.builder() - * .name("opt-in-status") - * .values("not-opted-in") + * .name("opt-in-status") + * .values("not-opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3929,13 +4084,15 @@ public static Output* <!--End PulumiCodeChooser --> * * All the regions regardless of the availability * * <!--Start PulumiCodeChooser --> - * ```java + *getRegions(GetRegionsArgs args, InvokeOpt * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3962,13 +4119,15 @@ public static Output* <!--End PulumiCodeChooser --> * * To see regions that are filtered by `"not-opted-in"`, the `all_regions` argument needs to be set to `true` or no results will be returned. * * <!--Start PulumiCodeChooser --> - * ```java + *getRegions(GetRegionsArgs args, InvokeOpt * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -3992,14 +4151,15 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -4014,7 +4174,8 @@ public static CompletableFuturegetRegions(GetRegionsArgs args, InvokeOpt * final var current = AwsFunctions.getRegions(GetRegionsArgs.builder() * .allRegions(true) * .filters(GetRegionsFilterArgs.builder() - * .name("opt-in-status") - * .values("not-opted-in") + * .name("opt-in-status") + * .values("not-opted-in") * .build()) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4039,19 +4200,21 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Use Service Reverse DNS Name to Get Components * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionsPlain(GetRegionsPlai * final var current = AwsFunctions.getRegion(); * * final var test = AwsFunctions.getService(GetServiceArgs.builder() - * .region(current.applyValue(getRegionResult -> getRegionResult.name())) - * .serviceId("ec2") + * .region(current.applyValue(getRegionResult -> getRegionResult.name())) + * .serviceId("ec2") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4073,18 +4236,20 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Determine Regional Support for a Service * * <!--Start PulumiCodeChooser --> - * ```java + *getRegionsPlain(GetRegionsPlai * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") + * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4106,12 +4271,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -4126,7 +4292,8 @@ public static OutputgetRegionsPlain(GetRegionsPlai * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") + * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4151,19 +4318,21 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Use Service Reverse DNS Name to Get Components * * <!--Start PulumiCodeChooser --> - * ```java + *getService() { * final var current = AwsFunctions.getRegion(); * * final var test = AwsFunctions.getService(GetServiceArgs.builder() - * .region(current.applyValue(getRegionResult -> getRegionResult.name())) - * .serviceId("ec2") + * .region(current.applyValue(getRegionResult -> getRegionResult.name())) + * .serviceId("ec2") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4185,18 +4354,20 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Determine Regional Support for a Service * * <!--Start PulumiCodeChooser --> - * ```java + *getService() { * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") + * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4218,12 +4389,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -4238,7 +4410,8 @@ public static CompletableFuturegetService() { * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") + * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4263,19 +4436,21 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Use Service Reverse DNS Name to Get Components * * <!--Start PulumiCodeChooser --> - * ```java + *getServicePlain() { * final var current = AwsFunctions.getRegion(); * * final var test = AwsFunctions.getService(GetServiceArgs.builder() - * .region(current.applyValue(getRegionResult -> getRegionResult.name())) - * .serviceId("ec2") + * .region(current.applyValue(getRegionResult -> getRegionResult.name())) + * .serviceId("ec2") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4297,18 +4472,20 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Determine Regional Support for a Service * * <!--Start PulumiCodeChooser --> - * ```java + *getServicePlain() { * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") + * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4330,12 +4507,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -4350,7 +4528,8 @@ public static OutputgetServicePlain() { * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") + * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4375,19 +4554,21 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Use Service Reverse DNS Name to Get Components * * <!--Start PulumiCodeChooser --> - * ```java + *getService(GetServiceArgs args) { * final var current = AwsFunctions.getRegion(); * * final var test = AwsFunctions.getService(GetServiceArgs.builder() - * .region(current.applyValue(getRegionResult -> getRegionResult.name())) - * .serviceId("ec2") + * .region(current.applyValue(getRegionResult -> getRegionResult.name())) + * .serviceId("ec2") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4409,18 +4590,20 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Determine Regional Support for a Service * * <!--Start PulumiCodeChooser --> - * ```java + *getService(GetServiceArgs args) { * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") + * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4442,12 +4625,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -4462,7 +4646,8 @@ public static CompletableFuturegetService(GetServiceArgs args) { * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") + * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4487,19 +4672,21 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Use Service Reverse DNS Name to Get Components * * <!--Start PulumiCodeChooser --> - * ```java + *getServicePlain(GetServicePlai * final var current = AwsFunctions.getRegion(); * * final var test = AwsFunctions.getService(GetServiceArgs.builder() - * .region(current.applyValue(getRegionResult -> getRegionResult.name())) - * .serviceId("ec2") + * .region(current.applyValue(getRegionResult -> getRegionResult.name())) + * .serviceId("ec2") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4521,18 +4708,20 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * ### Determine Regional Support for a Service * * <!--Start PulumiCodeChooser --> - * ```java + *getServicePlain(GetServicePlai * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") + * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4554,12 +4743,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -4574,7 +4764,8 @@ public static OutputgetServicePlain(GetServicePlai * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") + * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4599,19 +4790,21 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Use Service Reverse DNS Name to Get Components * * <!--Start PulumiCodeChooser --> - * ```java + *getService(GetServiceArgs args, InvokeOpt * final var current = AwsFunctions.getRegion(); * * final var test = AwsFunctions.getService(GetServiceArgs.builder() - * .region(current.applyValue(getRegionResult -> getRegionResult.name())) - * .serviceId("ec2") + * .region(current.applyValue(getRegionResult -> getRegionResult.name())) + * .serviceId("ec2") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4633,18 +4826,20 @@ public static Output* <!--End PulumiCodeChooser --> * * ### Determine Regional Support for a Service * * <!--Start PulumiCodeChooser --> - * ```java + *getService(GetServiceArgs args, InvokeOpt * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") + * .reverseDnsName("cn.com.amazonaws.cn-north-1.s3") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -4666,12 +4861,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/Analyzer.java b/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/Analyzer.java index 4ce27597c88..f3a863ba624 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/Analyzer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/Analyzer.java @@ -24,7 +24,8 @@ * ### Account Analyzer * * <!--Start PulumiCodeChooser --> - * ```java + *getService(GetServiceArgs args, InvokeOpt * * public static void stack(Context ctx) { * final var s3 = AwsFunctions.getService(GetServiceArgs.builder() - * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") + * .reverseDnsName("com.amazonaws.us-gov-west-1.waf") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -45,19 +46,21 @@ * } * * public static void stack(Context ctx) { - * var example = new Analyzer("example", AnalyzerArgs.builder() - * .analyzerName("example") + * var example = new Analyzer("example", AnalyzerArgs.builder() + * .analyzerName("example") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Organization Analyzer * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -81,20 +84,21 @@ * } * * public static void stack(Context ctx) { - * var example = new Organization("example", OrganizationArgs.builder() - * .awsServiceAccessPrincipals("access-analyzer.amazonaws.com") + * var example = new Organization("example", OrganizationArgs.builder() + * .awsServiceAccessPrincipals("access-analyzer.amazonaws.com") * .build()); * - * var exampleAnalyzer = new Analyzer("exampleAnalyzer", AnalyzerArgs.builder() - * .analyzerName("example") - * .type("ORGANIZATION") + * var exampleAnalyzer = new Analyzer("exampleAnalyzer", AnalyzerArgs.builder() + * .analyzerName("example") + * .type("ORGANIZATION") * .build(), CustomResourceOptions.builder() * .dependsOn(example) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/ArchiveRule.java b/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/ArchiveRule.java index 14b2e112c27..acafcd8603f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/ArchiveRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/ArchiveRule.java @@ -23,7 +23,8 @@ * ### Basic Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -45,27 +46,28 @@ * } * * public static void stack(Context ctx) { - * var example = new ArchiveRule("example", ArchiveRuleArgs.builder() - * .analyzerName("example-analyzer") - * .ruleName("example-rule") + * var example = new ArchiveRule("example", ArchiveRuleArgs.builder() + * .analyzerName("example-analyzer") + * .ruleName("example-rule") * .filters( * ArchiveRuleFilterArgs.builder() - * .criteria("condition.aws:UserId") - * .eqs("userid") + * .criteria("condition.aws:UserId") + * .eqs("userid") * .build(), * ArchiveRuleFilterArgs.builder() - * .criteria("error") + * .criteria("error") * .exists(true) * .build(), * ArchiveRuleFilterArgs.builder() - * .criteria("isPublic") - * .eqs("false") + * .criteria("isPublic") + * .eqs("false") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/account/AlternativeContact.java b/sdk/java/src/main/java/com/pulumi/aws/account/AlternativeContact.java index 72649ef6ca8..cdb9aa6dff4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/account/AlternativeContact.java +++ b/sdk/java/src/main/java/com/pulumi/aws/account/AlternativeContact.java @@ -20,7 +20,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -41,17 +42,18 @@ * } * * public static void stack(Context ctx) { - * var operations = new AlternativeContact("operations", AlternativeContactArgs.builder() - * .alternateContactType("OPERATIONS") - * .name("Example") - * .title("Example") - * .emailAddress("test@example.com") - * .phoneNumber("+1234567890") + * var operations = new AlternativeContact("operations", AlternativeContactArgs.builder() + * .alternateContactType("OPERATIONS") + * .name("Example") + * .title("Example") + * .emailAddress("test{@literal @}example.com") + * .phoneNumber("+1234567890") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/account/PrimaryContact.java b/sdk/java/src/main/java/com/pulumi/aws/account/PrimaryContact.java index b40ae2ed689..c4c7866d117 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/account/PrimaryContact.java +++ b/sdk/java/src/main/java/com/pulumi/aws/account/PrimaryContact.java @@ -20,7 +20,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -41,22 +42,23 @@ * } * * public static void stack(Context ctx) { - * var test = new PrimaryContact("test", PrimaryContactArgs.builder() - * .addressLine1("123 Any Street") - * .city("Seattle") - * .companyName("Example Corp, Inc.") - * .countryCode("US") - * .districtOrCounty("King") - * .fullName("My Name") - * .phoneNumber("+64211111111") - * .postalCode("98101") - * .stateOrRegion("WA") - * .websiteUrl("https://www.examplecorp.com") + * var test = new PrimaryContact("test", PrimaryContactArgs.builder() + * .addressLine1("123 Any Street") + * .city("Seattle") + * .companyName("Example Corp, Inc.") + * .countryCode("US") + * .districtOrCounty("King") + * .fullName("My Name") + * .phoneNumber("+64211111111") + * .postalCode("98101") + * .stateOrRegion("WA") + * .websiteUrl("https://www.examplecorp.com") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/account/Region.java b/sdk/java/src/main/java/com/pulumi/aws/account/Region.java index 04e6a2bce89..0f161c62fd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/account/Region.java +++ b/sdk/java/src/main/java/com/pulumi/aws/account/Region.java @@ -21,7 +21,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -42,14 +43,15 @@ * } * * public static void stack(Context ctx) { - * var example = new Region("example", RegionArgs.builder() - * .regionName("ap-southeast-3") + * var example = new Region("example", RegionArgs.builder() + * .regionName("ap-southeast-3") * .enabled(true) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/acm/AcmFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/acm/AcmFunctions.java index c2abc5ec186..5550fe66e82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acm/AcmFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acm/AcmFunctions.java @@ -22,7 +22,8 @@ public final class AcmFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -45,26 +46,27 @@ public final class AcmFunctions { * public static void stack(Context ctx) { * // Find a certificate that is issued * final var issued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .statuses("ISSUED") + * .domain("tf.example.com") + * .statuses("ISSUED") * .build()); * * // Find a certificate issued by (not imported into) ACM * final var amazonIssued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .types("AMAZON_ISSUED") + * .domain("tf.example.com") + * .types("AMAZON_ISSUED") * .mostRecent(true) * .build()); * * // Find a RSA 4096 bit certificate * final var rsa4096 = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .keyTypes("RSA_4096") + * .domain("tf.example.com") + * .keyTypes("RSA_4096") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ @@ -79,7 +81,8 @@ public static Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -102,26 +105,27 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -136,7 +140,8 @@ public static CompletableFuturegetCertificate(GetCertificateArgs arg * public static void stack(Context ctx) { * // Find a certificate that is issued * final var issued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .statuses("ISSUED") + * .domain("tf.example.com") + * .statuses("ISSUED") * .build()); * * // Find a certificate issued by (not imported into) ACM * final var amazonIssued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .types("AMAZON_ISSUED") + * .domain("tf.example.com") + * .types("AMAZON_ISSUED") * .mostRecent(true) * .build()); * * // Find a RSA 4096 bit certificate * final var rsa4096 = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .keyTypes("RSA_4096") + * .domain("tf.example.com") + * .keyTypes("RSA_4096") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -159,26 +164,27 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -193,7 +199,8 @@ public static OutputgetCertificatePlain(GetCer * public static void stack(Context ctx) { * // Find a certificate that is issued * final var issued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .statuses("ISSUED") + * .domain("tf.example.com") + * .statuses("ISSUED") * .build()); * * // Find a certificate issued by (not imported into) ACM * final var amazonIssued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .types("AMAZON_ISSUED") + * .domain("tf.example.com") + * .types("AMAZON_ISSUED") * .mostRecent(true) * .build()); * * // Find a RSA 4096 bit certificate * final var rsa4096 = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .keyTypes("RSA_4096") + * .domain("tf.example.com") + * .keyTypes("RSA_4096") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -216,26 +223,27 @@ public static Output* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/acm/Certificate.java b/sdk/java/src/main/java/com/pulumi/aws/acm/Certificate.java index d4143827b00..ce925951391 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acm/Certificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acm/Certificate.java @@ -65,7 +65,8 @@ * ### Custom Domain Validation Options * * <!--Start PulumiCodeChooser --> - * ```java + *getCertificate(GetCertificateArgs arg * public static void stack(Context ctx) { * // Find a certificate that is issued * final var issued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .statuses("ISSUED") + * .domain("tf.example.com") + * .statuses("ISSUED") * .build()); * * // Find a certificate issued by (not imported into) ACM * final var amazonIssued = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .types("AMAZON_ISSUED") + * .domain("tf.example.com") + * .types("AMAZON_ISSUED") * .mostRecent(true) * .build()); * * // Find a RSA 4096 bit certificate * final var rsa4096 = AcmFunctions.getCertificate(GetCertificateArgs.builder() - * .domain("tf.example.com") - * .keyTypes("RSA_4096") + * .domain("tf.example.com") + * .keyTypes("RSA_4096") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -87,24 +88,26 @@ * } * * public static void stack(Context ctx) { - * var cert = new Certificate("cert", CertificateArgs.builder() - * .domainName("testing.example.com") - * .validationMethod("EMAIL") + * var cert = new Certificate("cert", CertificateArgs.builder() + * .domainName("testing.example.com") + * .validationMethod("EMAIL") * .validationOptions(CertificateValidationOptionArgs.builder() - * .domainName("testing.example.com") - * .validationDomain("example.com") + * .domainName("testing.example.com") + * .validationDomain("example.com") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Existing Certificate Body Import * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -130,32 +133,33 @@ * } * * public static void stack(Context ctx) { - * var example = new PrivateKey("example", PrivateKeyArgs.builder() - * .algorithm("RSA") + * var example = new PrivateKey("example", PrivateKeyArgs.builder() + * .algorithm("RSA") * .build()); * - * var exampleSelfSignedCert = new SelfSignedCert("exampleSelfSignedCert", SelfSignedCertArgs.builder() - * .keyAlgorithm("RSA") + * var exampleSelfSignedCert = new SelfSignedCert("exampleSelfSignedCert", SelfSignedCertArgs.builder() + * .keyAlgorithm("RSA") * .privateKeyPem(example.privateKeyPem()) * .subject(SelfSignedCertSubjectArgs.builder() - * .commonName("example.com") - * .organization("ACME Examples, Inc") + * .commonName("example.com") + * .organization("ACME Examples, Inc") * .build()) * .validityPeriodHours(12) * .allowedUses( - * "key_encipherment", - * "digital_signature", - * "server_auth") + * "key_encipherment", + * "digital_signature", + * "server_auth") * .build()); * - * var cert = new Certificate("cert", CertificateArgs.builder() + * var cert = new Certificate("cert", CertificateArgs.builder() * .privateKey(example.privateKeyPem()) * .certificateBody(exampleSelfSignedCert.certPem()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Referencing domain_validation_options With for_each Based Resources diff --git a/sdk/java/src/main/java/com/pulumi/aws/acm/CertificateValidation.java b/sdk/java/src/main/java/com/pulumi/aws/acm/CertificateValidation.java index 37240f6fa87..7c40749f8ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acm/CertificateValidation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acm/CertificateValidation.java @@ -42,7 +42,8 @@ * In this situation, the resource is simply a waiter for manual email approval of ACM certificates. * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -65,18 +66,19 @@ * } * * public static void stack(Context ctx) { - * var example = new Certificate("example", CertificateArgs.builder() - * .domainName("example.com") - * .validationMethod("EMAIL") + * var example = new Certificate("example", CertificateArgs.builder() + * .domainName("example.com") + * .validationMethod("EMAIL") * .build()); * - * var exampleCertificateValidation = new CertificateValidation("exampleCertificateValidation", CertificateValidationArgs.builder() + * var exampleCertificateValidation = new CertificateValidation("exampleCertificateValidation", CertificateValidationArgs.builder() * .certificateArn(example.arn()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/AcmpcaFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/AcmpcaFunctions.java index c87b0679387..2aba76f5ed5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/AcmpcaFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/AcmpcaFunctions.java @@ -23,7 +23,8 @@ public final class AcmpcaFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -45,13 +46,14 @@ public final class AcmpcaFunctions { * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificate(GetCertificateArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") - * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") + * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ @@ -64,7 +66,8 @@ public static Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -86,13 +89,14 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -105,7 +109,8 @@ public static CompletableFuturegetCertificate(GetCertificateArgs arg * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificate(GetCertificateArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") - * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") + * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -127,13 +132,14 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -146,7 +152,8 @@ public static OutputgetCertificatePlain(GetCer * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificate(GetCertificateArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") - * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") + * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -168,13 +175,14 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -187,7 +195,8 @@ public static CompletableFuturegetCertificate(GetCertificateArgs arg * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificate(GetCertificateArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") - * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23") + * .certificateAuthorityArn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -209,12 +218,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -227,7 +237,8 @@ public static OutputgetCertificatePlain(GetCer * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificateAuthority(GetCertificateAuthorityArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -249,12 +260,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -267,7 +279,8 @@ public static CompletableFuturegetCertificateAuthority(GetC * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificateAuthority(GetCertificateAuthorityArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -289,12 +302,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -307,7 +321,8 @@ public static OutputgetCertificateAut * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificateAuthority(GetCertificateAuthorityArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -329,12 +344,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/Certificate.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/Certificate.java index f53cbc514a9..98efc89e028 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/Certificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/Certificate.java @@ -28,7 +28,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *getCertificateAuthority(GetC * * public static void stack(Context ctx) { * final var example = AcmpcaFunctions.getCertificateAuthority(GetCertificateAuthorityArgs.builder() - * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") + * .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -59,41 +60,42 @@ * } * * public static void stack(Context ctx) { - * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() + * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() * .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder() - * .keyAlgorithm("RSA_4096") - * .signingAlgorithm("SHA512WITHRSA") + * .keyAlgorithm("RSA_4096") + * .signingAlgorithm("SHA512WITHRSA") * .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder() - * .commonName("example.com") + * .commonName("example.com") * .build()) * .build()) * .permanentDeletionTimeInDays(7) * .build()); * - * var key = new PrivateKey("key", PrivateKeyArgs.builder() - * .algorithm("RSA") + * var key = new PrivateKey("key", PrivateKeyArgs.builder() + * .algorithm("RSA") * .build()); * - * var csr = new CertRequest("csr", CertRequestArgs.builder() + * var csr = new CertRequest("csr", CertRequestArgs.builder() * .privateKeyPem(key.privateKeyPem()) * .subject(CertRequestSubjectArgs.builder() - * .commonName("example") + * .commonName("example") * .build()) * .build()); * - * var example = new Certificate("example", CertificateArgs.builder() + * var example = new Certificate("example", CertificateArgs.builder() * .certificateAuthorityArn(exampleCertificateAuthority.arn()) * .certificateSigningRequest(csr.certRequestPem()) - * .signingAlgorithm("SHA256WITHRSA") + * .signingAlgorithm("SHA256WITHRSA") * .validity(CertificateValidityArgs.builder() - * .type("YEARS") + * .type("YEARS") * .value(1) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthority.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthority.java index 62bc7a9dc6d..0117fc0782d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthority.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthority.java @@ -29,7 +29,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -52,12 +53,12 @@ * } * * public static void stack(Context ctx) { - * var example = new CertificateAuthority("example", CertificateAuthorityArgs.builder() + * var example = new CertificateAuthority("example", CertificateAuthorityArgs.builder() * .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder() - * .keyAlgorithm("RSA_4096") - * .signingAlgorithm("SHA512WITHRSA") + * .keyAlgorithm("RSA_4096") + * .signingAlgorithm("SHA512WITHRSA") * .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder() - * .commonName("example.com") + * .commonName("example.com") * .build()) * .build()) * .permanentDeletionTimeInDays(7) @@ -65,13 +66,15 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Short-lived certificate * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -94,26 +97,28 @@ * } * * public static void stack(Context ctx) { - * var example = new CertificateAuthority("example", CertificateAuthorityArgs.builder() - * .usageMode("SHORT_LIVED_CERTIFICATE") + * var example = new CertificateAuthority("example", CertificateAuthorityArgs.builder() + * .usageMode("SHORT_LIVED_CERTIFICATE") * .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder() - * .keyAlgorithm("RSA_4096") - * .signingAlgorithm("SHA512WITHRSA") + * .keyAlgorithm("RSA_4096") + * .signingAlgorithm("SHA512WITHRSA") * .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder() - * .commonName("example.com") + * .commonName("example.com") * .build()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Enable Certificate Revocation List * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -145,48 +150,48 @@ * } * * public static void stack(Context ctx) { - * var example = new BucketV2("example", BucketV2Args.builder() - * .bucket("example") + * var example = new BucketV2("example", BucketV2Args.builder() + * .bucket("example") * .forceDestroy(true) * .build()); * * final var acmpcaBucketAccess = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() * .actions( - * "s3:GetBucketAcl", - * "s3:GetBucketLocation", - * "s3:PutObject", - * "s3:PutObjectAcl") + * "s3:GetBucketAcl", + * "s3:GetBucketLocation", + * "s3:PutObject", + * "s3:PutObjectAcl") * .resources( * example.arn(), - * example.arn().applyValue(arn -> String.format("%s/*", arn))) + * example.arn().applyValue(arn -> String.format("%s/*", arn))) * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .identifiers("acm-pca.amazonaws.com") - * .type("Service") + * .identifiers("acm-pca.amazonaws.com") + * .type("Service") * .build()) * .build()) * .build()); * - * var exampleBucketPolicy = new BucketPolicy("exampleBucketPolicy", BucketPolicyArgs.builder() + * var exampleBucketPolicy = new BucketPolicy("exampleBucketPolicy", BucketPolicyArgs.builder() * .bucket(example.id()) - * .policy(acmpcaBucketAccess.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(acmpcaBucketAccess -> acmpcaBucketAccess.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(acmpcaBucketAccess.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(acmpcaBucketAccess -> acmpcaBucketAccess.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * - * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() + * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() * .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder() - * .keyAlgorithm("RSA_4096") - * .signingAlgorithm("SHA512WITHRSA") + * .keyAlgorithm("RSA_4096") + * .signingAlgorithm("SHA512WITHRSA") * .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder() - * .commonName("example.com") + * .commonName("example.com") * .build()) * .build()) * .revocationConfiguration(CertificateAuthorityRevocationConfigurationArgs.builder() * .crlConfiguration(CertificateAuthorityRevocationConfigurationCrlConfigurationArgs.builder() - * .customCname("crl.example.com") + * .customCname("crl.example.com") * .enabled(true) * .expirationInDays(7) * .s3BucketName(example.id()) - * .s3ObjectAcl("BUCKET_OWNER_FULL_CONTROL") + * .s3ObjectAcl("BUCKET_OWNER_FULL_CONTROL") * .build()) * .build()) * .build(), CustomResourceOptions.builder() @@ -195,7 +200,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthorityCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthorityCertificate.java index 9cb05daf84c..11eeb8f0233 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthorityCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/CertificateAuthorityCertificate.java @@ -22,7 +22,8 @@ * ### Self-Signed Root Certificate Authority Certificate * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -52,31 +53,31 @@ * } * * public static void stack(Context ctx) { - * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() - * .type("ROOT") + * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() + * .type("ROOT") * .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder() - * .keyAlgorithm("RSA_4096") - * .signingAlgorithm("SHA512WITHRSA") + * .keyAlgorithm("RSA_4096") + * .signingAlgorithm("SHA512WITHRSA") * .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder() - * .commonName("example.com") + * .commonName("example.com") * .build()) * .build()) * .build()); * * final var current = AwsFunctions.getPartition(); * - * var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder() + * var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder() * .certificateAuthorityArn(exampleCertificateAuthority.arn()) * .certificateSigningRequest(exampleCertificateAuthority.certificateSigningRequest()) - * .signingAlgorithm("SHA512WITHRSA") - * .templateArn(String.format("arn:%s:acm-pca:::template/RootCACertificate/V1", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .signingAlgorithm("SHA512WITHRSA") + * .templateArn(String.format("arn:%s:acm-pca:::template/RootCACertificate/V1", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .validity(CertificateValidityArgs.builder() - * .type("YEARS") + * .type("YEARS") * .value(1) * .build()) * .build()); * - * var example = new CertificateAuthorityCertificate("example", CertificateAuthorityCertificateArgs.builder() + * var example = new CertificateAuthorityCertificate("example", CertificateAuthorityCertificateArgs.builder() * .certificateAuthorityArn(exampleCertificateAuthority.arn()) * .certificate(exampleCertificate.certificate()) * .certificateChain(exampleCertificate.certificateChain()) @@ -84,7 +85,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Certificate for Subordinate Certificate Authority @@ -92,7 +94,8 @@ * Note that the certificate for the subordinate certificate authority must be issued by the root certificate authority using a signing request from the subordinate certificate authority. * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -122,45 +125,46 @@ * } * * public static void stack(Context ctx) { - * var subordinateCertificateAuthority = new CertificateAuthority("subordinateCertificateAuthority", CertificateAuthorityArgs.builder() - * .type("SUBORDINATE") + * var subordinateCertificateAuthority = new CertificateAuthority("subordinateCertificateAuthority", CertificateAuthorityArgs.builder() + * .type("SUBORDINATE") * .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder() - * .keyAlgorithm("RSA_2048") - * .signingAlgorithm("SHA512WITHRSA") + * .keyAlgorithm("RSA_2048") + * .signingAlgorithm("SHA512WITHRSA") * .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder() - * .commonName("sub.example.com") + * .commonName("sub.example.com") * .build()) * .build()) * .build()); * - * var root = new CertificateAuthority("root"); + * var root = new CertificateAuthority("root"); * * final var current = AwsFunctions.getPartition(); * - * var subordinateCertificate = new Certificate("subordinateCertificate", CertificateArgs.builder() + * var subordinateCertificate = new Certificate("subordinateCertificate", CertificateArgs.builder() * .certificateAuthorityArn(root.arn()) * .certificateSigningRequest(subordinateCertificateAuthority.certificateSigningRequest()) - * .signingAlgorithm("SHA512WITHRSA") - * .templateArn(String.format("arn:%s:acm-pca:::template/SubordinateCACertificate_PathLen0/V1", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) + * .signingAlgorithm("SHA512WITHRSA") + * .templateArn(String.format("arn:%s:acm-pca:::template/SubordinateCACertificate_PathLen0/V1", current.applyValue(getPartitionResult -> getPartitionResult.partition()))) * .validity(CertificateValidityArgs.builder() - * .type("YEARS") + * .type("YEARS") * .value(1) * .build()) * .build()); * - * var subordinate = new CertificateAuthorityCertificate("subordinate", CertificateAuthorityCertificateArgs.builder() + * var subordinate = new CertificateAuthorityCertificate("subordinate", CertificateAuthorityCertificateArgs.builder() * .certificateAuthorityArn(subordinateCertificateAuthority.arn()) * .certificate(subordinateCertificate.certificate()) * .certificateChain(subordinateCertificate.certificateChain()) * .build()); * - * var rootCertificateAuthorityCertificate = new CertificateAuthorityCertificate("rootCertificateAuthorityCertificate"); + * var rootCertificateAuthorityCertificate = new CertificateAuthorityCertificate("rootCertificateAuthorityCertificate"); * - * var rootCertificate = new Certificate("rootCertificate"); + * var rootCertificate = new Certificate("rootCertificate"); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/Permission.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/Permission.java index 7862b4505ac..dfa6c697683 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/Permission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/Permission.java @@ -21,7 +21,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -46,28 +47,29 @@ * } * * public static void stack(Context ctx) { - * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() + * var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder() * .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder() - * .keyAlgorithm("RSA_4096") - * .signingAlgorithm("SHA512WITHRSA") + * .keyAlgorithm("RSA_4096") + * .signingAlgorithm("SHA512WITHRSA") * .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder() - * .commonName("example.com") + * .commonName("example.com") * .build()) * .build()) * .build()); * - * var example = new Permission("example", PermissionArgs.builder() + * var example = new Permission("example", PermissionArgs.builder() * .certificateAuthorityArn(exampleCertificateAuthority.arn()) * .actions( - * "IssueCertificate", - * "GetCertificate", - * "ListPermissions") - * .principal("acm.amazonaws.com") + * "IssueCertificate", + * "GetCertificate", + * "ListPermissions") + * .principal("acm.amazonaws.com") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/Policy.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/Policy.java index 6555a047c86..6305f6c2119 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/Policy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/Policy.java @@ -21,7 +21,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -47,45 +48,46 @@ * final var example = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements( * GetPolicyDocumentStatementArgs.builder() - * .sid("1") - * .effect("Allow") + * .sid("1") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") + * .type("AWS") * .identifiers(current.accountId()) * .build()) * .actions( - * "acm-pca:DescribeCertificateAuthority", - * "acm-pca:GetCertificate", - * "acm-pca:GetCertificateAuthorityCertificate", - * "acm-pca:ListPermissions", - * "acm-pca:ListTags") + * "acm-pca:DescribeCertificateAuthority", + * "acm-pca:GetCertificate", + * "acm-pca:GetCertificateAuthorityCertificate", + * "acm-pca:ListPermissions", + * "acm-pca:ListTags") * .resources(exampleAwsAcmpcaCertificateAuthority.arn()) * .build(), * GetPolicyDocumentStatementArgs.builder() - * .sid("2") + * .sid("2") * .effect(allow) * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") + * .type("AWS") * .identifiers(current.accountId()) * .build()) - * .actions("acm-pca:IssueCertificate") + * .actions("acm-pca:IssueCertificate") * .resources(exampleAwsAcmpcaCertificateAuthority.arn()) * .conditions(GetPolicyDocumentStatementConditionArgs.builder() - * .test("StringEquals") - * .variable("acm-pca:TemplateArn") - * .values("arn:aws:acm-pca:::template/EndEntityCertificate/V1") + * .test("StringEquals") + * .variable("acm-pca:TemplateArn") + * .values("arn:aws:acm-pca:::template/EndEntityCertificate/V1") * .build()) * .build()) * .build()); * - * var examplePolicy = new Policy("examplePolicy", PolicyArgs.builder() + * var examplePolicy = new Policy("examplePolicy", PolicyArgs.builder() * .resourceArn(exampleAwsAcmpcaCertificateAuthority.arn()) - * .policy(example.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) + * .policy(example.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/AlbFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/alb/AlbFunctions.java index 96c7ea8beeb..490966e486b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/AlbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/AlbFunctions.java @@ -30,7 +30,8 @@ public final class AlbFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -53,24 +54,25 @@ public final class AlbFunctions { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var listenerArn = config.get("listenerArn"); + * final var listenerArn = config.get("listenerArn"); * final var listener = LbFunctions.getListener(GetListenerArgs.builder() * .arn(listenerArn) * .build()); * * // get listener from load_balancer_arn and port * final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() - * .name("default-public") + * .name("default-public") * .build()); * * final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() - * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) + * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) * .port(443) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ @@ -87,7 +89,8 @@ public static Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -110,24 +113,25 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -144,7 +148,8 @@ public static CompletableFuturegetListener() { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var listenerArn = config.get("listenerArn"); + * final var listenerArn = config.get("listenerArn"); * final var listener = LbFunctions.getListener(GetListenerArgs.builder() * .arn(listenerArn) * .build()); * * // get listener from load_balancer_arn and port * final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() - * .name("default-public") + * .name("default-public") * .build()); * * final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() - * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) + * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) * .port(443) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -167,24 +172,25 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -201,7 +207,8 @@ public static OutputgetListenerPlain() { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var listenerArn = config.get("listenerArn"); + * final var listenerArn = config.get("listenerArn"); * final var listener = LbFunctions.getListener(GetListenerArgs.builder() * .arn(listenerArn) * .build()); * * // get listener from load_balancer_arn and port * final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() - * .name("default-public") + * .name("default-public") * .build()); * * final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() - * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) + * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) * .port(443) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -224,24 +231,25 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -258,7 +266,8 @@ public static CompletableFuturegetListener(GetListenerArgs args) { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var listenerArn = config.get("listenerArn"); + * final var listenerArn = config.get("listenerArn"); * final var listener = LbFunctions.getListener(GetListenerArgs.builder() * .arn(listenerArn) * .build()); * * // get listener from load_balancer_arn and port * final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() - * .name("default-public") + * .name("default-public") * .build()); * * final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() - * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) + * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) * .port(443) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -281,24 +290,25 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -315,7 +325,8 @@ public static OutputgetListenerPlain(GetListenerP * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var listenerArn = config.get("listenerArn"); + * final var listenerArn = config.get("listenerArn"); * final var listener = LbFunctions.getListener(GetListenerArgs.builder() * .arn(listenerArn) * .build()); * * // get listener from load_balancer_arn and port * final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() - * .name("default-public") + * .name("default-public") * .build()); * * final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() - * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) + * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) * .port(443) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -338,24 +349,25 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -374,7 +386,8 @@ public static CompletableFuturegetListener(GetListenerArgs args, Invoke * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var listenerArn = config.get("listenerArn"); + * final var listenerArn = config.get("listenerArn"); * final var listener = LbFunctions.getListener(GetListenerArgs.builder() * .arn(listenerArn) * .build()); * * // get listener from load_balancer_arn and port * final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() - * .name("default-public") + * .name("default-public") * .build()); * * final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() - * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) + * .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) * .port(443) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -396,8 +409,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -424,7 +438,8 @@ public static OutputgetListenerPlain(GetListenerP * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbArn = config.get("lbArn").orElse(""); - * final var lbName = config.get("lbName").orElse(""); + * final var lbArn = config.get("lbArn").orElse(""); + * final var lbName = config.get("lbName").orElse(""); * final var test = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() * .arn(lbArn) * .name(lbName) @@ -405,7 +418,8 @@ public static CompletableFuture getListenerPlain(GetListenerP * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -446,8 +461,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -474,7 +490,8 @@ public static CompletableFuturegetLoadBalancer() { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbArn = config.get("lbArn").orElse(""); - * final var lbName = config.get("lbName").orElse(""); + * final var lbArn = config.get("lbArn").orElse(""); + * final var lbName = config.get("lbName").orElse(""); * final var test = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() * .arn(lbArn) * .name(lbName) @@ -455,7 +470,8 @@ public static Output getLoadBalancer() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -496,8 +513,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -524,7 +542,8 @@ public static OutputgetLoadBalancerPlain() { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbArn = config.get("lbArn").orElse(""); - * final var lbName = config.get("lbName").orElse(""); + * final var lbArn = config.get("lbArn").orElse(""); + * final var lbName = config.get("lbName").orElse(""); * final var test = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() * .arn(lbArn) * .name(lbName) @@ -505,7 +522,8 @@ public static CompletableFuture getLoadBalancerPlain() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -546,8 +565,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -574,7 +594,8 @@ public static CompletableFuturegetLoadBalancer(GetLoadBalancerArgs * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbArn = config.get("lbArn").orElse(""); - * final var lbName = config.get("lbName").orElse(""); + * final var lbArn = config.get("lbArn").orElse(""); + * final var lbName = config.get("lbName").orElse(""); * final var test = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() * .arn(lbArn) * .name(lbName) @@ -555,7 +574,8 @@ public static Output getLoadBalancer(GetLoadBalancerArgs * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -596,8 +617,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -624,7 +646,8 @@ public static OutputgetLoadBalancerPlain(GetL * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbArn = config.get("lbArn").orElse(""); - * final var lbName = config.get("lbName").orElse(""); + * final var lbArn = config.get("lbArn").orElse(""); + * final var lbName = config.get("lbName").orElse(""); * final var test = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() * .arn(lbArn) * .name(lbName) @@ -605,7 +626,8 @@ public static CompletableFuture getLoadBalancerPlain(GetL * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -646,8 +669,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -674,7 +698,8 @@ public static CompletableFuturegetLoadBalancer(GetLoadBalancerArgs * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbArn = config.get("lbArn").orElse(""); - * final var lbName = config.get("lbName").orElse(""); + * final var lbArn = config.get("lbArn").orElse(""); + * final var lbName = config.get("lbName").orElse(""); * final var test = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() * .arn(lbArn) * .name(lbName) @@ -655,7 +678,8 @@ public static Output getLoadBalancer(GetLoadBalancerArgs * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -696,8 +721,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -724,7 +750,8 @@ public static OutputgetLoadBalancerPlain(GetL * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbTgArn = config.get("lbTgArn").orElse(""); - * final var lbTgName = config.get("lbTgName").orElse(""); + * final var lbTgArn = config.get("lbTgArn").orElse(""); + * final var lbTgName = config.get("lbTgName").orElse(""); * final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() * .arn(lbTgArn) * .name(lbTgName) @@ -705,7 +730,8 @@ public static CompletableFuture getLoadBalancerPlain(GetL * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -746,8 +773,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -774,7 +802,8 @@ public static CompletableFuturegetTargetGroup() { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbTgArn = config.get("lbTgArn").orElse(""); - * final var lbTgName = config.get("lbTgName").orElse(""); + * final var lbTgArn = config.get("lbTgArn").orElse(""); + * final var lbTgName = config.get("lbTgName").orElse(""); * final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() * .arn(lbTgArn) * .name(lbTgName) @@ -755,7 +782,8 @@ public static Output getTargetGroup() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -796,8 +825,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -824,7 +854,8 @@ public static OutputgetTargetGroupPlain() { * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbTgArn = config.get("lbTgArn").orElse(""); - * final var lbTgName = config.get("lbTgName").orElse(""); + * final var lbTgArn = config.get("lbTgArn").orElse(""); + * final var lbTgName = config.get("lbTgName").orElse(""); * final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() * .arn(lbTgArn) * .name(lbTgName) @@ -805,7 +834,8 @@ public static CompletableFuture getTargetGroupPlain() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -846,8 +877,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -874,7 +906,8 @@ public static CompletableFuturegetTargetGroup(GetTargetGroupArgs arg * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbTgArn = config.get("lbTgArn").orElse(""); - * final var lbTgName = config.get("lbTgName").orElse(""); + * final var lbTgArn = config.get("lbTgArn").orElse(""); + * final var lbTgName = config.get("lbTgName").orElse(""); * final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() * .arn(lbTgArn) * .name(lbTgName) @@ -855,7 +886,8 @@ public static Output getTargetGroup(GetTargetGroupArgs arg * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -896,8 +929,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -924,7 +958,8 @@ public static OutputgetTargetGroupPlain(GetTar * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbTgArn = config.get("lbTgArn").orElse(""); - * final var lbTgName = config.get("lbTgName").orElse(""); + * final var lbTgArn = config.get("lbTgArn").orElse(""); + * final var lbTgName = config.get("lbTgName").orElse(""); * final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() * .arn(lbTgArn) * .name(lbTgName) @@ -905,7 +938,8 @@ public static CompletableFuture getTargetGroupPlain(GetTar * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -946,8 +981,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/Listener.java b/sdk/java/src/main/java/com/pulumi/aws/alb/Listener.java index e0d378fd3a6..440ba4918a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/Listener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/Listener.java @@ -30,7 +30,8 @@ * ### Forward Action * * <!--Start PulumiCodeChooser --> - * ```java + *getTargetGroup(GetTargetGroupArgs arg * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var lbTgArn = config.get("lbTgArn").orElse(""); - * final var lbTgName = config.get("lbTgName").orElse(""); + * final var lbTgArn = config.get("lbTgArn").orElse(""); + * final var lbTgName = config.get("lbTgName").orElse(""); * final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() * .arn(lbTgArn) * .name(lbTgName) @@ -955,7 +990,8 @@ public static Output getTargetGroup(GetTargetGroupArgs arg * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -54,31 +55,33 @@ * } * * public static void stack(Context ctx) { - * var frontEnd = new LoadBalancer("frontEnd"); + * var frontEnd = new LoadBalancer("frontEnd"); * - * var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup"); + * var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup"); * - * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() + * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() * .loadBalancerArn(frontEnd.arn()) - * .port("443") - * .protocol("HTTPS") - * .sslPolicy("ELBSecurityPolicy-2016-08") - * .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4") + * .port("443") + * .protocol("HTTPS") + * .sslPolicy("ELBSecurityPolicy-2016-08") + * .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4") * .defaultActions(ListenerDefaultActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(frontEndTargetGroup.arn()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * To a NLB: * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -100,27 +103,29 @@ * } * * public static void stack(Context ctx) { - * var frontEnd = new Listener("frontEnd", ListenerArgs.builder() + * var frontEnd = new Listener("frontEnd", ListenerArgs.builder() * .loadBalancerArn(frontEndAwsLb.arn()) - * .port("443") - * .protocol("TLS") - * .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4") - * .alpnPolicy("HTTP2Preferred") + * .port("443") + * .protocol("TLS") + * .certificateArn("arn:aws:iam::187416307283:server-certificate/test_cert_rab3wuqwgja25ct3n4jdj2tzu4") + * .alpnPolicy("HTTP2Preferred") * .defaultActions(ListenerDefaultActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(frontEndAwsLbTargetGroup.arn()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Redirect Action * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -144,31 +149,33 @@ * } * * public static void stack(Context ctx) { - * var frontEnd = new LoadBalancer("frontEnd"); + * var frontEnd = new LoadBalancer("frontEnd"); * - * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() + * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() * .loadBalancerArn(frontEnd.arn()) - * .port("80") - * .protocol("HTTP") + * .port("80") + * .protocol("HTTP") * .defaultActions(ListenerDefaultActionArgs.builder() - * .type("redirect") + * .type("redirect") * .redirect(ListenerDefaultActionRedirectArgs.builder() - * .port("443") - * .protocol("HTTPS") - * .statusCode("HTTP_301") + * .port("443") + * .protocol("HTTPS") + * .statusCode("HTTP_301") * .build()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Fixed-response Action * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -192,31 +199,33 @@ * } * * public static void stack(Context ctx) { - * var frontEnd = new LoadBalancer("frontEnd"); + * var frontEnd = new LoadBalancer("frontEnd"); * - * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() + * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() * .loadBalancerArn(frontEnd.arn()) - * .port("80") - * .protocol("HTTP") + * .port("80") + * .protocol("HTTP") * .defaultActions(ListenerDefaultActionArgs.builder() - * .type("fixed-response") + * .type("fixed-response") * .fixedResponse(ListenerDefaultActionFixedResponseArgs.builder() - * .contentType("text/plain") - * .messageBody("Fixed response content") - * .statusCode("200") + * .contentType("text/plain") + * .messageBody("Fixed response content") + * .statusCode("200") * .build()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Authenticate-cognito Action * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -244,23 +253,23 @@ * } * * public static void stack(Context ctx) { - * var frontEnd = new LoadBalancer("frontEnd"); + * var frontEnd = new LoadBalancer("frontEnd"); * - * var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup"); + * var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup"); * - * var pool = new UserPool("pool"); + * var pool = new UserPool("pool"); * - * var client = new UserPoolClient("client"); + * var client = new UserPoolClient("client"); * - * var domain = new UserPoolDomain("domain"); + * var domain = new UserPoolDomain("domain"); * - * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() + * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() * .loadBalancerArn(frontEnd.arn()) - * .port("80") - * .protocol("HTTP") + * .port("80") + * .protocol("HTTP") * .defaultActions( * ListenerDefaultActionArgs.builder() - * .type("authenticate-cognito") + * .type("authenticate-cognito") * .authenticateCognito(ListenerDefaultActionAuthenticateCognitoArgs.builder() * .userPoolArn(pool.arn()) * .userPoolClientId(client.id()) @@ -268,20 +277,22 @@ * .build()) * .build(), * ListenerDefaultActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(frontEndTargetGroup.arn()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Authenticate-OIDC Action * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -306,41 +317,43 @@ * } * * public static void stack(Context ctx) { - * var frontEnd = new LoadBalancer("frontEnd"); + * var frontEnd = new LoadBalancer("frontEnd"); * - * var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup"); + * var frontEndTargetGroup = new TargetGroup("frontEndTargetGroup"); * - * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() + * var frontEndListener = new Listener("frontEndListener", ListenerArgs.builder() * .loadBalancerArn(frontEnd.arn()) - * .port("80") - * .protocol("HTTP") + * .port("80") + * .protocol("HTTP") * .defaultActions( * ListenerDefaultActionArgs.builder() - * .type("authenticate-oidc") + * .type("authenticate-oidc") * .authenticateOidc(ListenerDefaultActionAuthenticateOidcArgs.builder() - * .authorizationEndpoint("https://example.com/authorization_endpoint") - * .clientId("client_id") - * .clientSecret("client_secret") - * .issuer("https://example.com") - * .tokenEndpoint("https://example.com/token_endpoint") - * .userInfoEndpoint("https://example.com/user_info_endpoint") + * .authorizationEndpoint("https://example.com/authorization_endpoint") + * .clientId("client_id") + * .clientSecret("client_secret") + * .issuer("https://example.com") + * .tokenEndpoint("https://example.com/token_endpoint") + * .userInfoEndpoint("https://example.com/user_info_endpoint") * .build()) * .build(), * ListenerDefaultActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(frontEndTargetGroup.arn()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Gateway Load Balancer Listener * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -368,42 +381,44 @@ * } * * public static void stack(Context ctx) { - * var example = new LoadBalancer("example", LoadBalancerArgs.builder() - * .loadBalancerType("gateway") - * .name("example") + * var example = new LoadBalancer("example", LoadBalancerArgs.builder() + * .loadBalancerType("gateway") + * .name("example") * .subnetMappings(LoadBalancerSubnetMappingArgs.builder() * .subnetId(exampleAwsSubnet.id()) * .build()) * .build()); * - * var exampleTargetGroup = new TargetGroup("exampleTargetGroup", TargetGroupArgs.builder() - * .name("example") + * var exampleTargetGroup = new TargetGroup("exampleTargetGroup", TargetGroupArgs.builder() + * .name("example") * .port(6081) - * .protocol("GENEVE") + * .protocol("GENEVE") * .vpcId(exampleAwsVpc.id()) * .healthCheck(TargetGroupHealthCheckArgs.builder() * .port(80) - * .protocol("HTTP") + * .protocol("HTTP") * .build()) * .build()); * - * var exampleListener = new Listener("exampleListener", ListenerArgs.builder() + * var exampleListener = new Listener("exampleListener", ListenerArgs.builder() * .loadBalancerArn(example.id()) * .defaultActions(ListenerDefaultActionArgs.builder() * .targetGroupArn(exampleTargetGroup.id()) - * .type("forward") + * .type("forward") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Mutual TLS Authentication * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -429,27 +444,28 @@ * } * * public static void stack(Context ctx) { - * var example = new LoadBalancer("example", LoadBalancerArgs.builder() - * .loadBalancerType("application") + * var example = new LoadBalancer("example", LoadBalancerArgs.builder() + * .loadBalancerType("application") * .build()); * - * var exampleTargetGroup = new TargetGroup("exampleTargetGroup"); + * var exampleTargetGroup = new TargetGroup("exampleTargetGroup"); * - * var exampleListener = new Listener("exampleListener", ListenerArgs.builder() + * var exampleListener = new Listener("exampleListener", ListenerArgs.builder() * .loadBalancerArn(example.id()) * .defaultActions(ListenerDefaultActionArgs.builder() * .targetGroupArn(exampleTargetGroup.id()) - * .type("forward") + * .type("forward") * .build()) * .mutualAuthentication(ListenerMutualAuthenticationArgs.builder() - * .mode("verify") - * .trustStoreArn("...") + * .mode("verify") + * .trustStoreArn("...") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerCertificate.java index 075bb8e27ab..80a3ebe5a5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerCertificate.java @@ -25,7 +25,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -49,20 +50,21 @@ * } * * public static void stack(Context ctx) { - * var example = new Certificate("example"); + * var example = new Certificate("example"); * - * var frontEnd = new LoadBalancer("frontEnd"); + * var frontEnd = new LoadBalancer("frontEnd"); * - * var frontEndListener = new Listener("frontEndListener"); + * var frontEndListener = new Listener("frontEndListener"); * - * var exampleListenerCertificate = new ListenerCertificate("exampleListenerCertificate", ListenerCertificateArgs.builder() + * var exampleListenerCertificate = new ListenerCertificate("exampleListenerCertificate", ListenerCertificateArgs.builder() * .listenerArn(frontEndListener.arn()) * .certificateArn(example.arn()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerRule.java b/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerRule.java index 6b2609ac6ea..8c408237650 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/ListenerRule.java @@ -28,7 +28,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -65,51 +66,51 @@ * } * * public static void stack(Context ctx) { - * var frontEnd = new LoadBalancer("frontEnd"); + * var frontEnd = new LoadBalancer("frontEnd"); * - * var frontEndListener = new Listener("frontEndListener"); + * var frontEndListener = new Listener("frontEndListener"); * - * var static_ = new ListenerRule("static", ListenerRuleArgs.builder() + * var static_ = new ListenerRule("static", ListenerRuleArgs.builder() * .listenerArn(frontEndListener.arn()) * .priority(100) * .actions(ListenerRuleActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(staticAwsLbTargetGroup.arn()) * .build()) * .conditions( * ListenerRuleConditionArgs.builder() * .pathPattern(ListenerRuleConditionPathPatternArgs.builder() - * .values("/static/*") + * .values("/static/*") * .build()) * .build(), * ListenerRuleConditionArgs.builder() * .hostHeader(ListenerRuleConditionHostHeaderArgs.builder() - * .values("example.com") + * .values("example.com") * .build()) * .build()) * .build()); * * // Forward action - * var hostBasedWeightedRouting = new ListenerRule("hostBasedWeightedRouting", ListenerRuleArgs.builder() + * var hostBasedWeightedRouting = new ListenerRule("hostBasedWeightedRouting", ListenerRuleArgs.builder() * .listenerArn(frontEndListener.arn()) * .priority(99) * .actions(ListenerRuleActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(staticAwsLbTargetGroup.arn()) * .build()) * .conditions(ListenerRuleConditionArgs.builder() * .hostHeader(ListenerRuleConditionHostHeaderArgs.builder() - * .values("my-service.*.mycompany.io") + * .values("my-service.*.mycompany.io") * .build()) * .build()) * .build()); * * // Weighted Forward action - * var hostBasedRouting = new ListenerRule("hostBasedRouting", ListenerRuleArgs.builder() + * var hostBasedRouting = new ListenerRule("hostBasedRouting", ListenerRuleArgs.builder() * .listenerArn(frontEndListener.arn()) * .priority(99) * .actions(ListenerRuleActionArgs.builder() - * .type("forward") + * .type("forward") * .forward(ListenerRuleActionForwardArgs.builder() * .targetGroups( * ListenerRuleActionForwardTargetGroupArgs.builder() @@ -128,65 +129,65 @@ * .build()) * .conditions(ListenerRuleConditionArgs.builder() * .hostHeader(ListenerRuleConditionHostHeaderArgs.builder() - * .values("my-service.*.mycompany.io") + * .values("my-service.*.mycompany.io") * .build()) * .build()) * .build()); * * // Redirect action - * var redirectHttpToHttps = new ListenerRule("redirectHttpToHttps", ListenerRuleArgs.builder() + * var redirectHttpToHttps = new ListenerRule("redirectHttpToHttps", ListenerRuleArgs.builder() * .listenerArn(frontEndListener.arn()) * .actions(ListenerRuleActionArgs.builder() - * .type("redirect") + * .type("redirect") * .redirect(ListenerRuleActionRedirectArgs.builder() - * .port("443") - * .protocol("HTTPS") - * .statusCode("HTTP_301") + * .port("443") + * .protocol("HTTPS") + * .statusCode("HTTP_301") * .build()) * .build()) * .conditions(ListenerRuleConditionArgs.builder() * .httpHeader(ListenerRuleConditionHttpHeaderArgs.builder() - * .httpHeaderName("X-Forwarded-For") - * .values("192.168.1.*") + * .httpHeaderName("X-Forwarded-For") + * .values("192.168.1.*") * .build()) * .build()) * .build()); * * // Fixed-response action - * var healthCheck = new ListenerRule("healthCheck", ListenerRuleArgs.builder() + * var healthCheck = new ListenerRule("healthCheck", ListenerRuleArgs.builder() * .listenerArn(frontEndListener.arn()) * .actions(ListenerRuleActionArgs.builder() - * .type("fixed-response") + * .type("fixed-response") * .fixedResponse(ListenerRuleActionFixedResponseArgs.builder() - * .contentType("text/plain") - * .messageBody("HEALTHY") - * .statusCode("200") + * .contentType("text/plain") + * .messageBody("HEALTHY") + * .statusCode("200") * .build()) * .build()) * .conditions(ListenerRuleConditionArgs.builder() * .queryStrings( * ListenerRuleConditionQueryStringArgs.builder() - * .key("health") - * .value("check") + * .key("health") + * .value("check") * .build(), * ListenerRuleConditionQueryStringArgs.builder() - * .value("bar") + * .value("bar") * .build()) * .build()) * .build()); * * // Authenticate-cognito Action - * var pool = new UserPool("pool"); + * var pool = new UserPool("pool"); * - * var client = new UserPoolClient("client"); + * var client = new UserPoolClient("client"); * - * var domain = new UserPoolDomain("domain"); + * var domain = new UserPoolDomain("domain"); * - * var admin = new ListenerRule("admin", ListenerRuleArgs.builder() + * var admin = new ListenerRule("admin", ListenerRuleArgs.builder() * .listenerArn(frontEndListener.arn()) * .actions( * ListenerRuleActionArgs.builder() - * .type("authenticate-cognito") + * .type("authenticate-cognito") * .authenticateCognito(ListenerRuleActionAuthenticateCognitoArgs.builder() * .userPoolArn(pool.arn()) * .userPoolClientId(client.id()) @@ -194,35 +195,36 @@ * .build()) * .build(), * ListenerRuleActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(staticAwsLbTargetGroup.arn()) * .build()) * .build()); * * // Authenticate-oidc Action - * var oidc = new ListenerRule("oidc", ListenerRuleArgs.builder() + * var oidc = new ListenerRule("oidc", ListenerRuleArgs.builder() * .listenerArn(frontEndListener.arn()) * .actions( * ListenerRuleActionArgs.builder() - * .type("authenticate-oidc") + * .type("authenticate-oidc") * .authenticateOidc(ListenerRuleActionAuthenticateOidcArgs.builder() - * .authorizationEndpoint("https://example.com/authorization_endpoint") - * .clientId("client_id") - * .clientSecret("client_secret") - * .issuer("https://example.com") - * .tokenEndpoint("https://example.com/token_endpoint") - * .userInfoEndpoint("https://example.com/user_info_endpoint") + * .authorizationEndpoint("https://example.com/authorization_endpoint") + * .clientId("client_id") + * .clientSecret("client_secret") + * .issuer("https://example.com") + * .tokenEndpoint("https://example.com/token_endpoint") + * .userInfoEndpoint("https://example.com/user_info_endpoint") * .build()) * .build(), * ListenerRuleActionArgs.builder() - * .type("forward") + * .type("forward") * .targetGroupArn(staticAwsLbTargetGroup.arn()) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/LoadBalancer.java b/sdk/java/src/main/java/com/pulumi/aws/alb/LoadBalancer.java index b4db268defe..3c22cae25b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/LoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/LoadBalancer.java @@ -42,7 +42,8 @@ * ### Specifying Elastic IPs * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -64,9 +65,9 @@ * } * * public static void stack(Context ctx) { - * var example = new LoadBalancer("example", LoadBalancerArgs.builder() - * .name("example") - * .loadBalancerType("network") + * var example = new LoadBalancer("example", LoadBalancerArgs.builder() + * .name("example") + * .loadBalancerType("network") * .subnetMappings( * LoadBalancerSubnetMappingArgs.builder() * .subnetId(example1AwsSubnet.id()) @@ -80,13 +81,15 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Specifying private IP addresses for an internal-facing load balancer * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -108,23 +111,24 @@ * } * * public static void stack(Context ctx) { - * var example = new LoadBalancer("example", LoadBalancerArgs.builder() - * .name("example") - * .loadBalancerType("network") + * var example = new LoadBalancer("example", LoadBalancerArgs.builder() + * .name("example") + * .loadBalancerType("network") * .subnetMappings( * LoadBalancerSubnetMappingArgs.builder() * .subnetId(example1.id()) - * .privateIpv4Address("10.0.1.15") + * .privateIpv4Address("10.0.1.15") * .build(), * LoadBalancerSubnetMappingArgs.builder() * .subnetId(example2.id()) - * .privateIpv4Address("10.0.2.15") + * .privateIpv4Address("10.0.2.15") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroup.java index e3937b7e898..98cd3eb3729 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroup.java @@ -33,7 +33,8 @@ * ### Instance Target Group * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -56,26 +57,28 @@ * } * * public static void stack(Context ctx) { - * var main = new Vpc("main", VpcArgs.builder() - * .cidrBlock("10.0.0.0/16") + * var main = new Vpc("main", VpcArgs.builder() + * .cidrBlock("10.0.0.0/16") * .build()); * - * var test = new TargetGroup("test", TargetGroupArgs.builder() - * .name("tf-example-lb-tg") + * var test = new TargetGroup("test", TargetGroupArgs.builder() + * .name("tf-example-lb-tg") * .port(80) - * .protocol("HTTP") + * .protocol("HTTP") * .vpcId(main.id()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### IP Target Group * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -98,27 +101,29 @@ * } * * public static void stack(Context ctx) { - * var main = new Vpc("main", VpcArgs.builder() - * .cidrBlock("10.0.0.0/16") + * var main = new Vpc("main", VpcArgs.builder() + * .cidrBlock("10.0.0.0/16") * .build()); * - * var ip_example = new TargetGroup("ip-example", TargetGroupArgs.builder() - * .name("tf-example-lb-tg") + * var ip_example = new TargetGroup("ip-example", TargetGroupArgs.builder() + * .name("tf-example-lb-tg") * .port(80) - * .protocol("HTTP") - * .targetType("ip") + * .protocol("HTTP") + * .targetType("ip") * .vpcId(main.id()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Lambda Target Group * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -139,20 +144,22 @@ * } * * public static void stack(Context ctx) { - * var lambda_example = new TargetGroup("lambda-example", TargetGroupArgs.builder() - * .name("tf-example-lb-tg") - * .targetType("lambda") + * var lambda_example = new TargetGroup("lambda-example", TargetGroupArgs.builder() + * .name("tf-example-lb-tg") + * .targetType("lambda") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### ALB Target Group * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -173,23 +180,25 @@ * } * * public static void stack(Context ctx) { - * var alb_example = new TargetGroup("alb-example", TargetGroupArgs.builder() - * .name("tf-example-lb-alb-tg") - * .targetType("alb") + * var alb_example = new TargetGroup("alb-example", TargetGroupArgs.builder() + * .name("tf-example-lb-alb-tg") + * .targetType("alb") * .port(80) - * .protocol("TCP") + * .protocol("TCP") * .vpcId(main.id()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Target group with unhealthy connection termination disabled * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -211,10 +220,10 @@ * } * * public static void stack(Context ctx) { - * var tcp_example = new TargetGroup("tcp-example", TargetGroupArgs.builder() - * .name("tf-example-lb-nlb-tg") + * var tcp_example = new TargetGroup("tcp-example", TargetGroupArgs.builder() + * .name("tf-example-lb-nlb-tg") * .port(25) - * .protocol("TCP") + * .protocol("TCP") * .vpcId(main.id()) * .targetHealthStates(TargetGroupTargetHealthStateArgs.builder() * .enableUnhealthyConnectionTermination(false) @@ -223,7 +232,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroupAttachment.java b/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroupAttachment.java index b9459bee58f..548cc6e66ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroupAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/TargetGroupAttachment.java @@ -27,7 +27,8 @@ * ### Basic Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -50,11 +51,11 @@ * } * * public static void stack(Context ctx) { - * var testTargetGroup = new TargetGroup("testTargetGroup"); + * var testTargetGroup = new TargetGroup("testTargetGroup"); * - * var testInstance = new Instance("testInstance"); + * var testInstance = new Instance("testInstance"); * - * var test = new TargetGroupAttachment("test", TargetGroupAttachmentArgs.builder() + * var test = new TargetGroupAttachment("test", TargetGroupAttachmentArgs.builder() * .targetGroupArn(testTargetGroup.arn()) * .targetId(testInstance.id()) * .port(80) @@ -62,13 +63,15 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Lambda Target * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -95,22 +98,22 @@ * } * * public static void stack(Context ctx) { - * var test = new TargetGroup("test", TargetGroupArgs.builder() - * .name("test") - * .targetType("lambda") + * var test = new TargetGroup("test", TargetGroupArgs.builder() + * .name("test") + * .targetType("lambda") * .build()); * - * var testFunction = new Function("testFunction"); + * var testFunction = new Function("testFunction"); * - * var withLb = new Permission("withLb", PermissionArgs.builder() - * .statementId("AllowExecutionFromlb") - * .action("lambda:InvokeFunction") + * var withLb = new Permission("withLb", PermissionArgs.builder() + * .statementId("AllowExecutionFromlb") + * .action("lambda:InvokeFunction") * .function(testFunction.name()) - * .principal("elasticloadbalancing.amazonaws.com") + * .principal("elasticloadbalancing.amazonaws.com") * .sourceArn(test.arn()) * .build()); * - * var testTargetGroupAttachment = new TargetGroupAttachment("testTargetGroupAttachment", TargetGroupAttachmentArgs.builder() + * var testTargetGroupAttachment = new TargetGroupAttachment("testTargetGroupAttachment", TargetGroupAttachmentArgs.builder() * .targetGroupArn(test.arn()) * .targetId(testFunction.arn()) * .build(), CustomResourceOptions.builder() @@ -119,7 +122,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Registering Multiple Targets diff --git a/sdk/java/src/main/java/com/pulumi/aws/amp/AlertManagerDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/amp/AlertManagerDefinition.java index 3e4c936aff2..23b6664bbc8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amp/AlertManagerDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amp/AlertManagerDefinition.java @@ -19,7 +19,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -41,22 +42,23 @@ * } * * public static void stack(Context ctx) { - * var demo = new Workspace("demo"); + * var demo = new Workspace("demo"); * - * var demoAlertManagerDefinition = new AlertManagerDefinition("demoAlertManagerDefinition", AlertManagerDefinitionArgs.builder() + * var demoAlertManagerDefinition = new AlertManagerDefinition("demoAlertManagerDefinition", AlertManagerDefinitionArgs.builder() * .workspaceId(demo.id()) - * .definition(""" + * .definition(""" * alertmanager_config: | * route: - * receiver: 'default' + * receiver: 'default' * receivers: - * - name: 'default' - * """) + * - name: 'default' + * """) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/amp/AmpFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/amp/AmpFunctions.java index 8c0e34223af..5ee60815e9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amp/AmpFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amp/AmpFunctions.java @@ -25,7 +25,8 @@ public final class AmpFunctions { * ### Basic configuration * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -47,12 +48,13 @@ public final class AmpFunctions { * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder() - * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") + * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ @@ -67,7 +69,8 @@ public static Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -89,12 +92,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -109,7 +113,8 @@ public static CompletableFuturegetWorkspace(GetWorkspaceArgs args) { * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder() - * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") + * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -131,12 +136,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -151,7 +157,8 @@ public static OutputgetWorkspacePlain(GetWorkspa * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder() - * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") + * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -173,12 +180,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -193,7 +201,8 @@ public static CompletableFuturegetWorkspace(GetWorkspaceArgs args, Inv * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder() - * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") + * .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -218,14 +227,16 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * The following example filters the workspaces by alias. Only the workspaces with * aliases that begin with the value of `alias_prefix` will be returned: * * <!--Start PulumiCodeChooser --> - * ```java + *getWorkspacePlain(GetWorkspa * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -247,12 +258,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -267,7 +279,8 @@ public static OutputgetWorkspacePlain(GetWorkspa * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder() - * .aliasPrefix("example") + * .aliasPrefix("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -292,14 +305,16 @@ public static Output* <!--End PulumiCodeChooser --> * * The following example filters the workspaces by alias. Only the workspaces with * aliases that begin with the value of `alias_prefix` will be returned: * * <!--Start PulumiCodeChooser --> - * ```java + *getWorkspaces() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -321,12 +336,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -341,7 +357,8 @@ public static CompletableFuturegetWorkspaces() { * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder() - * .aliasPrefix("example") + * .aliasPrefix("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -366,14 +383,16 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * The following example filters the workspaces by alias. Only the workspaces with * aliases that begin with the value of `alias_prefix` will be returned: * * <!--Start PulumiCodeChooser --> - * ```java + *getWorkspacesPlain() { * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -395,12 +414,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -415,7 +435,8 @@ public static OutputgetWorkspacesPlain() { * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder() - * .aliasPrefix("example") + * .aliasPrefix("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -440,14 +461,16 @@ public static Output* <!--End PulumiCodeChooser --> * * The following example filters the workspaces by alias. Only the workspaces with * aliases that begin with the value of `alias_prefix` will be returned: * * <!--Start PulumiCodeChooser --> - * ```java + *getWorkspaces(GetWorkspacesArgs args) * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -469,12 +492,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -489,7 +513,8 @@ public static CompletableFuturegetWorkspaces(GetWorkspacesArgs args) * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder() - * .aliasPrefix("example") + * .aliasPrefix("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -514,14 +539,16 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * * The following example filters the workspaces by alias. Only the workspaces with * aliases that begin with the value of `alias_prefix` will be returned: * * <!--Start PulumiCodeChooser --> - * ```java + *getWorkspacesPlain(GetWorks * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -543,12 +570,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -563,7 +591,8 @@ public static OutputgetWorkspacesPlain(GetWorks * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder() - * .aliasPrefix("example") + * .aliasPrefix("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -588,14 +617,16 @@ public static Output* <!--End PulumiCodeChooser --> * * The following example filters the workspaces by alias. Only the workspaces with * aliases that begin with the value of `alias_prefix` will be returned: * * <!--Start PulumiCodeChooser --> - * ```java + *getWorkspaces(GetWorkspacesArgs args, * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -617,12 +648,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/amp/RuleGroupNamespace.java b/sdk/java/src/main/java/com/pulumi/aws/amp/RuleGroupNamespace.java index af35fcfa3e4..8251381ad39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amp/RuleGroupNamespace.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amp/RuleGroupNamespace.java @@ -19,7 +19,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *getWorkspaces(GetWorkspacesArgs args, * * public static void stack(Context ctx) { * final var example = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder() - * .aliasPrefix("example") + * .aliasPrefix("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -41,23 +42,24 @@ * } * * public static void stack(Context ctx) { - * var demo = new Workspace("demo"); + * var demo = new Workspace("demo"); * - * var demoRuleGroupNamespace = new RuleGroupNamespace("demoRuleGroupNamespace", RuleGroupNamespaceArgs.builder() - * .name("rules") + * var demoRuleGroupNamespace = new RuleGroupNamespace("demoRuleGroupNamespace", RuleGroupNamespaceArgs.builder() + * .name("rules") * .workspaceId(demo.id()) - * .data(""" + * .data(""" * groups: * - name: test * rules: * - record: metric:recording_rule * expr: avg(rate(container_cpu_usage_seconds_total[5m])) - * """) + * """) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/amp/Workspace.java b/sdk/java/src/main/java/com/pulumi/aws/amp/Workspace.java index 9d377d3ec80..b8608323bb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amp/Workspace.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amp/Workspace.java @@ -22,7 +22,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -43,20 +44,22 @@ * } * * public static void stack(Context ctx) { - * var example = new Workspace("example", WorkspaceArgs.builder() - * .alias("example") - * .tags(Map.of("Environment", "production")) + * var example = new Workspace("example", WorkspaceArgs.builder() + * .alias("example") + * .tags(Map.of("Environment", "production")) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### CloudWatch Logging * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -80,25 +83,27 @@ * } * * public static void stack(Context ctx) { - * var example = new LogGroup("example", LogGroupArgs.builder() - * .name("example") + * var example = new LogGroup("example", LogGroupArgs.builder() + * .name("example") * .build()); * - * var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder() + * var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder() * .loggingConfiguration(WorkspaceLoggingConfigurationArgs.builder() - * .logGroupArn(example.arn().applyValue(arn -> String.format("%s:*", arn))) + * .logGroupArn(example.arn().applyValue(arn -> String.format("%s:*", arn))) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### AWS KMS Customer Managed Keys (CMK) * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -121,19 +126,20 @@ * } * * public static void stack(Context ctx) { - * var exampleKey = new Key("exampleKey", KeyArgs.builder() - * .description("example") + * var exampleKey = new Key("exampleKey", KeyArgs.builder() + * .description("example") * .deletionWindowInDays(7) * .build()); * - * var example = new Workspace("example", WorkspaceArgs.builder() - * .alias("example") + * var example = new Workspace("example", WorkspaceArgs.builder() + * .alias("example") * .kmsKeyArn(exampleKey.arn()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/App.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/App.java index 772fa480ccf..ab26b169cea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/App.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/App.java @@ -28,7 +28,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -50,10 +51,10 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") - * .repository("https://github.com/example/app") - * .buildSpec(""" + * var example = new App("example", AppArgs.builder() + * .name("example") + * .repository("https://github.com/example/app") + * .buildSpec(""" * version: 0.1 * frontend: * phases: @@ -66,22 +67,23 @@ * artifacts: * baseDirectory: build * files: - * - '**{@literal /}*' + * - '**{@literal /}*' * cache: * paths: * - node_modules/**{@literal /}* - * """) + * """) * .customRules(AppCustomRuleArgs.builder() - * .source("/<*>") - * .status("404") - * .target("/index.html") + * .source("/<*>") + * .status("404") + * .target("/index.html") * .build()) - * .environmentVariables(Map.of("ENV", "test")) + * .environmentVariables(Map.of("ENV", "test")) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Repository with Tokens @@ -89,7 +91,8 @@ * If you create a new Amplify App with the `repository` argument, you also need to set `oauth_token` or `access_token` for authentication. For GitHub, get a [personal access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) and set `access_token` as follows: * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -110,15 +113,16 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") - * .repository("https://github.com/example/app") - * .accessToken("...") + * var example = new App("example", AppArgs.builder() + * .name("example") + * .repository("https://github.com/example/app") + * .accessToken("...") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * You can omit `access_token` if you import an existing Amplify App created by the Amplify Console (using OAuth for authentication). @@ -126,7 +130,8 @@ * ### Auto Branch Creation * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -148,12 +153,12 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") + * var example = new App("example", AppArgs.builder() + * .name("example") * .enableAutoBranchCreation(true) * .autoBranchCreationPatterns( - * "*", - * "*{@literal /}**") + * "*", + * "*{@literal /}**") * .autoBranchCreationConfig(AppAutoBranchCreationConfigArgs.builder() * .enableAutoBuild(true) * .build()) @@ -161,13 +166,15 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Basic Authorization * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -188,23 +195,25 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") + * var example = new App("example", AppArgs.builder() + * .name("example") * .enableBasicAuth(true) * .basicAuthCredentials(StdFunctions.base64encode(Base64encodeArgs.builder() - * .input("username1:password1") + * .input("username1:password1") * .build()).result()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Rewrites and Redirects * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -226,30 +235,32 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") + * var example = new App("example", AppArgs.builder() + * .name("example") * .customRules( * AppCustomRuleArgs.builder() - * .source("/api/<*>") - * .status("200") - * .target("https://api.example.com/api/<*>") + * .source("/api/<*>") + * .status("200") + * .target("https://api.example.com/api/<*>") * .build(), * AppCustomRuleArgs.builder() - * .source("</^[^.]+$|\\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>") - * .status("200") - * .target("/index.html") + * .source("^[^.]+$|\\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>") + * .status("200") + * .target("/index.html") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Custom Image * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -270,20 +281,22 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") - * .environmentVariables(Map.of("_CUSTOM_IMAGE", "node:16")) + * var example = new App("example", AppArgs.builder() + * .name("example") + * .environmentVariables(Map.of("_CUSTOM_IMAGE", "node:16")) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Custom Headers * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -304,28 +317,29 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") - * .customHeaders(""" + * var example = new App("example", AppArgs.builder() + * .name("example") + * .customHeaders(""" * customHeaders: - * - pattern: '**' + * - pattern: '**' * headers: - * - key: 'Strict-Transport-Security' - * value: 'max-age=31536000; includeSubDomains' - * - key: 'X-Frame-Options' - * value: 'SAMEORIGIN' - * - key: 'X-XSS-Protection' - * value: '1; mode=block' - * - key: 'X-Content-Type-Options' - * value: 'nosniff' - * - key: 'Content-Security-Policy' - * value: "default-src 'self'" - * """) + * - key: 'Strict-Transport-Security' + * value: 'max-age=31536000; includeSubDomains' + * - key: 'X-Frame-Options' + * value: 'SAMEORIGIN' + * - key: 'X-XSS-Protection' + * value: '1; mode=block' + * - key: 'X-Content-Type-Options' + * value: 'nosniff' + * - key: 'Content-Security-Policy' + * value: "default-src 'self'" + * """) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/BackendEnvironment.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/BackendEnvironment.java index db8f453891e..fdf164780d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/BackendEnvironment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/BackendEnvironment.java @@ -19,7 +19,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -42,20 +43,21 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("example") + * var example = new App("example", AppArgs.builder() + * .name("example") * .build()); * - * var exampleBackendEnvironment = new BackendEnvironment("exampleBackendEnvironment", BackendEnvironmentArgs.builder() + * var exampleBackendEnvironment = new BackendEnvironment("exampleBackendEnvironment", BackendEnvironmentArgs.builder() * .appId(example.id()) - * .environmentName("example") - * .deploymentArtifacts("app-example-deployment") - * .stackName("amplify-app-example") + * .environmentName("example") + * .deploymentArtifacts("app-example-deployment") + * .stackName("amplify-app-example") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/Branch.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/Branch.java index a8b79b6f1d6..6f9cd570d4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/Branch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/Branch.java @@ -23,7 +23,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -46,27 +47,29 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("app") + * var example = new App("example", AppArgs.builder() + * .name("app") * .build()); * - * var master = new Branch("master", BranchArgs.builder() + * var master = new Branch("master", BranchArgs.builder() * .appId(example.id()) - * .branchName("master") - * .framework("React") - * .stage("PRODUCTION") - * .environmentVariables(Map.of("REACT_APP_API_SERVER", "https://api.example.com")) + * .branchName("master") + * .framework("React") + * .stage("PRODUCTION") + * .environmentVariables(Map.of("REACT_APP_API_SERVER", "https://api.example.com")) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Basic Authentication * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -89,22 +92,23 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("app") + * var example = new App("example", AppArgs.builder() + * .name("app") * .build()); * - * var master = new Branch("master", BranchArgs.builder() + * var master = new Branch("master", BranchArgs.builder() * .appId(example.id()) - * .branchName("master") + * .branchName("master") * .enableBasicAuth(true) * .basicAuthCredentials(StdFunctions.base64encode(Base64encodeArgs.builder() - * .input("username:password") + * .input("username:password") * .build()).result()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Notifications @@ -112,7 +116,8 @@ * Amplify Console uses EventBridge (formerly known as CloudWatch Events) and SNS for email notifications. To implement the same functionality, you need to set `enable_notification` in a `aws.amplify.Branch` resource, as well as creating an EventBridge Rule, an SNS topic, and SNS subscriptions. * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -149,88 +154,89 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("app") + * var example = new App("example", AppArgs.builder() + * .name("app") * .build()); * - * var master = new Branch("master", BranchArgs.builder() + * var master = new Branch("master", BranchArgs.builder() * .appId(example.id()) - * .branchName("master") + * .branchName("master") * .enableNotification(true) * .build()); * * // EventBridge Rule for Amplify notifications - * var amplifyAppMasterEventRule = new EventRule("amplifyAppMasterEventRule", EventRuleArgs.builder() - * .name(master.branchName().applyValue(branchName -> String.format("amplify-%s-%s-branch-notification", app.id(),branchName))) - * .description(master.branchName().applyValue(branchName -> String.format("AWS Amplify build notifications for : App: %s Branch: %s", app.id(),branchName))) - * .eventPattern(Output.tuple(example.id(), master.branchName()).applyValue(values -> { + * var amplifyAppMasterEventRule = new EventRule("amplifyAppMasterEventRule", EventRuleArgs.builder() + * .name(master.branchName().applyValue(branchName -> String.format("amplify-%s-%s-branch-notification", app.id(),branchName))) + * .description(master.branchName().applyValue(branchName -> String.format("AWS Amplify build notifications for : App: %s Branch: %s", app.id(),branchName))) + * .eventPattern(Output.tuple(example.id(), master.branchName()).applyValue(values -> { * var id = values.t1; * var branchName = values.t2; * return serializeJson( * jsonObject( - * jsonProperty("detail", jsonObject( - * jsonProperty("appId", jsonArray(id)), - * jsonProperty("branchName", jsonArray(branchName)), - * jsonProperty("jobStatus", jsonArray( - * "SUCCEED", - * "FAILED", - * "STARTED" + * jsonProperty("detail", jsonObject( + * jsonProperty("appId", jsonArray(id)), + * jsonProperty("branchName", jsonArray(branchName)), + * jsonProperty("jobStatus", jsonArray( + * "SUCCEED", + * "FAILED", + * "STARTED" * )) * )), - * jsonProperty("detail-type", jsonArray("Amplify Deployment Status Change")), - * jsonProperty("source", jsonArray("aws.amplify")) + * jsonProperty("detail-type", jsonArray("Amplify Deployment Status Change")), + * jsonProperty("source", jsonArray("aws.amplify")) * )); * })) * .build()); * * // SNS Topic for Amplify notifications - * var amplifyAppMasterTopic = new Topic("amplifyAppMasterTopic", TopicArgs.builder() - * .name(master.branchName().applyValue(branchName -> String.format("amplify-%s_%s", app.id(),branchName))) + * var amplifyAppMasterTopic = new Topic("amplifyAppMasterTopic", TopicArgs.builder() + * .name(master.branchName().applyValue(branchName -> String.format("amplify-%s_%s", app.id(),branchName))) * .build()); * - * var amplifyAppMasterEventTarget = new EventTarget("amplifyAppMasterEventTarget", EventTargetArgs.builder() + * var amplifyAppMasterEventTarget = new EventTarget("amplifyAppMasterEventTarget", EventTargetArgs.builder() * .rule(amplifyAppMasterEventRule.name()) * .targetId(master.branchName()) * .arn(amplifyAppMasterTopic.arn()) * .inputTransformer(EventTargetInputTransformerArgs.builder() * .inputPaths(Map.ofEntries( - * Map.entry("jobId", "$.detail.jobId"), - * Map.entry("appId", "$.detail.appId"), - * Map.entry("region", "$.region"), - * Map.entry("branch", "$.detail.branchName"), - * Map.entry("status", "$.detail.jobStatus") + * Map.entry("jobId", "$.detail.jobId"), + * Map.entry("appId", "$.detail.appId"), + * Map.entry("region", "$.region"), + * Map.entry("branch", "$.detail.branchName"), + * Map.entry("status", "$.detail.jobStatus") * )) - * .inputTemplate("\"Build notification from the AWS Amplify Console for app: https://<branch>.<appId>.amplifyapp.com/. Your build status is <status>. Go to https://console.aws.amazon.com/amplify/home?region=<region>#<appId>/<branch>/<jobId> to view details on your build. \"") + * .inputTemplate("\"Build notification from the AWS Amplify Console for app: https://* <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/DomainAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/DomainAssociation.java index c34cd7742ee..2f7bfa96b44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/DomainAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/DomainAssociation.java @@ -23,7 +23,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *. .amplifyapp.com/. Your build status is . Go to https://console.aws.amazon.com/amplify/home?region= # / / to view details on your build. \"") * .build()) * .build()); * * final var amplifyAppMaster = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .sid(master.arn().applyValue(arn -> String.format("Allow_Publish_Events %s", arn))) - * .effect("Allow") - * .actions("SNS:Publish") + * .sid(master.arn().applyValue(arn -> String.format("Allow_Publish_Events %s", arn))) + * .effect("Allow") + * .actions("SNS:Publish") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("Service") - * .identifiers("events.amazonaws.com") + * .type("Service") + * .identifiers("events.amazonaws.com") * .build()) * .resources(amplifyAppMasterTopic.arn()) * .build()) * .build()); * - * var amplifyAppMasterTopicPolicy = new TopicPolicy("amplifyAppMasterTopicPolicy", TopicPolicyArgs.builder() + * var amplifyAppMasterTopicPolicy = new TopicPolicy("amplifyAppMasterTopicPolicy", TopicPolicyArgs.builder() * .arn(amplifyAppMasterTopic.arn()) - * .policy(amplifyAppMaster.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(amplifyAppMaster -> amplifyAppMaster.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(amplifyAppMaster.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(amplifyAppMaster -> amplifyAppMaster.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * - * var this_ = new TopicSubscription("this", TopicSubscriptionArgs.builder() + * var this_ = new TopicSubscription("this", TopicSubscriptionArgs.builder() * .topic(amplifyAppMasterTopic.arn()) - * .protocol("email") - * .endpoint("user@acme.com") + * .protocol("email") + * .endpoint("user{@literal @}acme.com") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -50,37 +51,38 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("app") + * var example = new App("example", AppArgs.builder() + * .name("app") * .customRules(AppCustomRuleArgs.builder() - * .source("https://example.com") - * .status("302") - * .target("https://www.example.com") + * .source("https://example.com") + * .status("302") + * .target("https://www.example.com") * .build()) * .build()); * - * var master = new Branch("master", BranchArgs.builder() + * var master = new Branch("master", BranchArgs.builder() * .appId(example.id()) - * .branchName("master") + * .branchName("master") * .build()); * - * var exampleDomainAssociation = new DomainAssociation("exampleDomainAssociation", DomainAssociationArgs.builder() + * var exampleDomainAssociation = new DomainAssociation("exampleDomainAssociation", DomainAssociationArgs.builder() * .appId(example.id()) - * .domainName("example.com") + * .domainName("example.com") * .subDomains( * DomainAssociationSubDomainArgs.builder() * .branchName(master.branchName()) - * .prefix("") + * .prefix("") * .build(), * DomainAssociationSubDomainArgs.builder() * .branchName(master.branchName()) - * .prefix("www") + * .prefix("www") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/Webhook.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/Webhook.java index ed681d5c55f..760cd2c1c82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/Webhook.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/Webhook.java @@ -20,7 +20,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -45,24 +46,25 @@ * } * * public static void stack(Context ctx) { - * var example = new App("example", AppArgs.builder() - * .name("app") + * var example = new App("example", AppArgs.builder() + * .name("app") * .build()); * - * var master = new Branch("master", BranchArgs.builder() + * var master = new Branch("master", BranchArgs.builder() * .appId(example.id()) - * .branchName("master") + * .branchName("master") * .build()); * - * var masterWebhook = new Webhook("masterWebhook", WebhookArgs.builder() + * var masterWebhook = new Webhook("masterWebhook", WebhookArgs.builder() * .appId(example.id()) * .branchName(master.branchName()) - * .description("triggermaster") + * .description("triggermaster") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Account.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Account.java index 16a1d508748..a2e3702b7f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Account.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Account.java @@ -24,7 +24,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -53,48 +54,49 @@ * public static void stack(Context ctx) { * final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("Service") - * .identifiers("apigateway.amazonaws.com") + * .type("Service") + * .identifiers("apigateway.amazonaws.com") * .build()) - * .actions("sts:AssumeRole") + * .actions("sts:AssumeRole") * .build()) * .build()); * - * var cloudwatchRole = new Role("cloudwatchRole", RoleArgs.builder() - * .name("api_gateway_cloudwatch_global") - * .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) + * var cloudwatchRole = new Role("cloudwatchRole", RoleArgs.builder() + * .name("api_gateway_cloudwatch_global") + * .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) * .build()); * - * var demo = new Account("demo", AccountArgs.builder() + * var demo = new Account("demo", AccountArgs.builder() * .cloudwatchRoleArn(cloudwatchRole.arn()) * .build()); * * final var cloudwatch = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .actions( - * "logs:CreateLogGroup", - * "logs:CreateLogStream", - * "logs:DescribeLogGroups", - * "logs:DescribeLogStreams", - * "logs:PutLogEvents", - * "logs:GetLogEvents", - * "logs:FilterLogEvents") - * .resources("*") + * "logs:CreateLogGroup", + * "logs:CreateLogStream", + * "logs:DescribeLogGroups", + * "logs:DescribeLogStreams", + * "logs:PutLogEvents", + * "logs:GetLogEvents", + * "logs:FilterLogEvents") + * .resources("*") * .build()) * .build()); * - * var cloudwatchRolePolicy = new RolePolicy("cloudwatchRolePolicy", RolePolicyArgs.builder() - * .name("default") + * var cloudwatchRolePolicy = new RolePolicy("cloudwatchRolePolicy", RolePolicyArgs.builder() + * .name("default") * .role(cloudwatchRole.id()) - * .policy(cloudwatch.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) + * .policy(cloudwatch.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApiKey.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApiKey.java index 303f896c98a..eebc310a69d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApiKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApiKey.java @@ -25,7 +25,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -46,13 +47,14 @@ * } * * public static void stack(Context ctx) { - * var example = new ApiKey("example", ApiKeyArgs.builder() - * .name("example") + * var example = new ApiKey("example", ApiKeyArgs.builder() + * .name("example") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApigatewayFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApigatewayFunctions.java index 5d06a06f89b..a685dde1478 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApigatewayFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/ApigatewayFunctions.java @@ -44,7 +44,8 @@ public final class ApigatewayFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -72,7 +73,8 @@ public final class ApigatewayFunctions { * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ @@ -85,7 +87,8 @@ public static Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -113,7 +116,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -126,7 +130,8 @@ public static CompletableFuturegetAuthorizer(GetAuthorizerArgs args) * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -154,7 +159,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -167,7 +173,8 @@ public static OutputgetAuthorizerPlain(GetAutho * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -195,7 +202,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -208,7 +216,8 @@ public static CompletableFuturegetAuthorizer(GetAuthorizerArgs args, * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -235,7 +244,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -248,7 +258,8 @@ public static OutputgetAuthorizerPlain(GetAutho * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -275,7 +286,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -288,7 +300,8 @@ public static CompletableFuturegetAuthorizers(GetAuthorizersArgs arg * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -315,7 +328,8 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -328,7 +342,8 @@ public static OutputgetAuthorizersPlain(GetAut * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -355,7 +370,8 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -368,7 +384,8 @@ public static CompletableFuturegetAuthorizers(GetAuthorizersArgs arg * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -390,12 +407,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -408,7 +426,8 @@ public static OutputgetAuthorizersPlain(GetAut * * public static void stack(Context ctx) { * final var example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder() - * .domainName("api.example.com") + * .domainName("api.example.com") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -430,12 +449,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -448,7 +468,8 @@ public static CompletableFuturegetDomainName(GetDomainNameArgs args) * * public static void stack(Context ctx) { * final var example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder() - * .domainName("api.example.com") + * .domainName("api.example.com") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -470,12 +491,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -488,7 +510,8 @@ public static OutputgetDomainNamePlain(GetDomai * * public static void stack(Context ctx) { * final var example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder() - * .domainName("api.example.com") + * .domainName("api.example.com") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -510,12 +533,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -526,7 +550,8 @@ public static CompletableFuturegetDomainName(GetDomainNameArgs args, * * public static void stack(Context ctx) { * final var example = ApigatewayFunctions.getDomainName(GetDomainNameArgs.builder() - * .domainName("api.example.com") + * .domainName("api.example.com") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -550,12 +575,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -566,7 +592,8 @@ public static OutputgetDomainNamePlain(GetDomai * final var example = ApigatewayFunctions.getExport(GetExportArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .exportType("oas30") + * .exportType("oas30") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -590,12 +617,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -606,7 +634,8 @@ public static CompletableFuturegetExport(GetExportArgs args) { * final var example = ApigatewayFunctions.getExport(GetExportArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .exportType("oas30") + * .exportType("oas30") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -630,12 +659,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -646,7 +676,8 @@ public static OutputgetExportPlain(GetExportPlainAr * final var example = ApigatewayFunctions.getExport(GetExportArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .exportType("oas30") + * .exportType("oas30") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -670,12 +701,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -689,7 +721,8 @@ public static CompletableFuturegetExport(GetExportArgs args, InvokeOption * final var example = ApigatewayFunctions.getExport(GetExportArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .exportType("oas30") + * .exportType("oas30") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -711,12 +744,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -730,7 +764,8 @@ public static OutputgetExportPlain(GetExportPlainAr * * public static void stack(Context ctx) { * final var myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder() - * .id("ru3mpjgse6") + * .id("ru3mpjgse6") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -752,12 +787,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -771,7 +807,8 @@ public static CompletableFuturegetKey(GetKeyArgs args) { * * public static void stack(Context ctx) { * final var myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder() - * .id("ru3mpjgse6") + * .id("ru3mpjgse6") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -793,12 +830,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -812,7 +850,8 @@ public static OutputgetKeyPlain(GetKeyPlainArgs args) * * public static void stack(Context ctx) { * final var myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder() - * .id("ru3mpjgse6") + * .id("ru3mpjgse6") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -834,12 +873,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -853,7 +893,8 @@ public static CompletableFuturegetKey(GetKeyArgs args, InvokeOptions options * * public static void stack(Context ctx) { * final var myApiKey = ApigatewayFunctions.getKey(GetKeyArgs.builder() - * .id("ru3mpjgse6") + * .id("ru3mpjgse6") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -876,17 +917,18 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -900,7 +942,8 @@ public static OutputgetKeyPlain(GetKeyPlainArgs args, * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder() - * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) - * .path("/endpoint/path") + * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) + * .path("/endpoint/path") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -923,17 +966,18 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -947,7 +991,8 @@ public static CompletableFuturegetResource(GetResourceArgs args) { * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder() - * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) - * .path("/endpoint/path") + * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) + * .path("/endpoint/path") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -970,17 +1015,18 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -994,7 +1040,8 @@ public static OutputgetResourcePlain(GetResourceP * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder() - * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) - * .path("/endpoint/path") + * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) + * .path("/endpoint/path") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1017,17 +1064,18 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1043,7 +1091,8 @@ public static CompletableFuturegetResource(GetResourceArgs args, Invoke * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * final var myResource = ApigatewayFunctions.getResource(GetResourceArgs.builder() - * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) - * .path("/endpoint/path") + * .restApiId(myRestApi.applyValue(getRestApiResult -> getRestApiResult.id())) + * .path("/endpoint/path") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1065,12 +1114,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1086,7 +1136,8 @@ public static OutputgetResourcePlain(GetResourceP * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1108,12 +1159,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1129,7 +1181,8 @@ public static CompletableFuturegetRestApi(GetRestApiArgs args) { * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1151,12 +1204,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1172,7 +1226,8 @@ public static OutputgetRestApiPlain(GetRestApiPlai * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1194,12 +1249,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1210,7 +1266,8 @@ public static CompletableFuturegetRestApi(GetRestApiArgs args, InvokeOpt * * public static void stack(Context ctx) { * final var myRestApi = ApigatewayFunctions.getRestApi(GetRestApiArgs.builder() - * .name("my-rest-api") + * .name("my-rest-api") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1234,18 +1291,19 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1256,7 +1314,8 @@ public static OutputgetRestApiPlain(GetRestApiPlai * final var example = ApigatewayFunctions.getSdk(GetSdkArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .sdkType("android") + * .sdkType("android") * .parameters(Map.ofEntries( - * Map.entry("groupId", "example"), - * Map.entry("artifactId", "example"), - * Map.entry("artifactVersion", "example"), - * Map.entry("invokerPackage", "example") + * Map.entry("groupId", "example"), + * Map.entry("artifactId", "example"), + * Map.entry("artifactVersion", "example"), + * Map.entry("invokerPackage", "example") * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1280,18 +1339,19 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1302,7 +1362,8 @@ public static CompletableFuturegetSdk(GetSdkArgs args) { * final var example = ApigatewayFunctions.getSdk(GetSdkArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .sdkType("android") + * .sdkType("android") * .parameters(Map.ofEntries( - * Map.entry("groupId", "example"), - * Map.entry("artifactId", "example"), - * Map.entry("artifactVersion", "example"), - * Map.entry("invokerPackage", "example") + * Map.entry("groupId", "example"), + * Map.entry("artifactId", "example"), + * Map.entry("artifactVersion", "example"), + * Map.entry("invokerPackage", "example") * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1326,18 +1387,19 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1348,7 +1410,8 @@ public static OutputgetSdkPlain(GetSdkPlainArgs args) * final var example = ApigatewayFunctions.getSdk(GetSdkArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .sdkType("android") + * .sdkType("android") * .parameters(Map.ofEntries( - * Map.entry("groupId", "example"), - * Map.entry("artifactId", "example"), - * Map.entry("artifactVersion", "example"), - * Map.entry("invokerPackage", "example") + * Map.entry("groupId", "example"), + * Map.entry("artifactId", "example"), + * Map.entry("artifactVersion", "example"), + * Map.entry("invokerPackage", "example") * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1372,18 +1435,19 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1399,7 +1463,8 @@ public static CompletableFuturegetSdk(GetSdkArgs args, InvokeOptions options * final var example = ApigatewayFunctions.getSdk(GetSdkArgs.builder() * .restApiId(exampleAwsApiGatewayStage.restApiId()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .sdkType("android") + * .sdkType("android") * .parameters(Map.ofEntries( - * Map.entry("groupId", "example"), - * Map.entry("artifactId", "example"), - * Map.entry("artifactVersion", "example"), - * Map.entry("invokerPackage", "example") + * Map.entry("groupId", "example"), + * Map.entry("artifactId", "example"), + * Map.entry("artifactVersion", "example"), + * Map.entry("invokerPackage", "example") * )) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1421,12 +1486,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1442,7 +1508,8 @@ public static OutputgetSdkPlain(GetSdkPlainArgs args, * * public static void stack(Context ctx) { * final var myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder() - * .name("my-vpc-link") + * .name("my-vpc-link") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1464,12 +1531,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -1485,7 +1553,8 @@ public static CompletableFuturegetVpcLink(GetVpcLinkArgs args) { * * public static void stack(Context ctx) { * final var myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder() - * .name("my-vpc-link") + * .name("my-vpc-link") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1507,12 +1576,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -1528,7 +1598,8 @@ public static OutputgetVpcLinkPlain(GetVpcLinkPlai * * public static void stack(Context ctx) { * final var myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder() - * .name("my-vpc-link") + * .name("my-vpc-link") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -1550,12 +1621,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Authorizer.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Authorizer.java index 7b600b0e255..48519ac0339 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Authorizer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Authorizer.java @@ -22,7 +22,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *getVpcLink(GetVpcLinkArgs args, InvokeOpt * * public static void stack(Context ctx) { * final var myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder() - * .name("my-vpc-link") + * .name("my-vpc-link") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -54,55 +55,55 @@ * } * * public static void stack(Context ctx) { - * var demoRestApi = new RestApi("demoRestApi", RestApiArgs.builder() - * .name("auth-demo") + * var demoRestApi = new RestApi("demoRestApi", RestApiArgs.builder() + * .name("auth-demo") * .build()); * * final var invocationAssumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("Service") - * .identifiers("apigateway.amazonaws.com") + * .type("Service") + * .identifiers("apigateway.amazonaws.com") * .build()) - * .actions("sts:AssumeRole") + * .actions("sts:AssumeRole") * .build()) * .build()); * - * var invocationRole = new Role("invocationRole", RoleArgs.builder() - * .name("api_gateway_auth_invocation") - * .path("/") - * .assumeRolePolicy(invocationAssumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) + * var invocationRole = new Role("invocationRole", RoleArgs.builder() + * .name("api_gateway_auth_invocation") + * .path("/") + * .assumeRolePolicy(invocationAssumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) * .build()); * * final var lambdaAssumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") - * .actions("sts:AssumeRole") + * .effect("Allow") + * .actions("sts:AssumeRole") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("Service") - * .identifiers("lambda.amazonaws.com") + * .type("Service") + * .identifiers("lambda.amazonaws.com") * .build()) * .build()) * .build()); * - * var lambda = new Role("lambda", RoleArgs.builder() - * .name("demo-lambda") - * .assumeRolePolicy(lambdaAssumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) + * var lambda = new Role("lambda", RoleArgs.builder() + * .name("demo-lambda") + * .assumeRolePolicy(lambdaAssumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) * .build()); * - * var authorizer = new Function("authorizer", FunctionArgs.builder() - * .code(new FileArchive("lambda-function.zip")) - * .name("api_gateway_authorizer") + * var authorizer = new Function("authorizer", FunctionArgs.builder() + * .code(new FileArchive("lambda-function.zip")) + * .name("api_gateway_authorizer") * .role(lambda.arn()) - * .handler("exports.example") + * .handler("exports.example") * .sourceCodeHash(StdFunctions.filebase64sha256(Filebase64sha256Args.builder() - * .input("lambda-function.zip") + * .input("lambda-function.zip") * .build()).result()) * .build()); * - * var demo = new Authorizer("demo", AuthorizerArgs.builder() - * .name("demo") + * var demo = new Authorizer("demo", AuthorizerArgs.builder() + * .name("demo") * .restApi(demoRestApi.id()) * .authorizerUri(authorizer.invokeArn()) * .authorizerCredentials(invocationRole.arn()) @@ -110,21 +111,22 @@ * * final var invocationPolicy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") - * .actions("lambda:InvokeFunction") + * .effect("Allow") + * .actions("lambda:InvokeFunction") * .resources(authorizer.arn()) * .build()) * .build()); * - * var invocationPolicyRolePolicy = new RolePolicy("invocationPolicyRolePolicy", RolePolicyArgs.builder() - * .name("default") + * var invocationPolicyRolePolicy = new RolePolicy("invocationPolicyRolePolicy", RolePolicyArgs.builder() + * .name("default") * .role(invocationRole.id()) - * .policy(invocationPolicy.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(invocationPolicy -> invocationPolicy.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(invocationPolicy.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(invocationPolicy -> invocationPolicy.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/ClientCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/ClientCertificate.java index 307a9be67f9..ff42f853d3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/ClientCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/ClientCertificate.java @@ -21,7 +21,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -42,13 +43,14 @@ * } * * public static void stack(Context ctx) { - * var demo = new ClientCertificate("demo", ClientCertificateArgs.builder() - * .description("My client certificate") + * var demo = new ClientCertificate("demo", ClientCertificateArgs.builder() + * .description("My client certificate") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationPart.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationPart.java index ba60403506a..fe2c467b7c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationPart.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationPart.java @@ -20,7 +20,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -44,23 +45,24 @@ * } * * public static void stack(Context ctx) { - * var exampleRestApi = new RestApi("exampleRestApi", RestApiArgs.builder() - * .name("example_api") + * var exampleRestApi = new RestApi("exampleRestApi", RestApiArgs.builder() + * .name("example_api") * .build()); * - * var example = new DocumentationPart("example", DocumentationPartArgs.builder() + * var example = new DocumentationPart("example", DocumentationPartArgs.builder() * .location(DocumentationPartLocationArgs.builder() - * .type("METHOD") - * .method("GET") - * .path("/example") + * .type("METHOD") + * .method("GET") + * .path("/example") * .build()) - * .properties("{\"description\":\"Example description\"}") + * .properties("{\"description\":\"Example description\"}") * .restApiId(exampleRestApi.id()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationVersion.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationVersion.java index 6bce13123d0..56638e11277 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationVersion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/DocumentationVersion.java @@ -20,7 +20,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -47,29 +48,30 @@ * } * * public static void stack(Context ctx) { - * var exampleRestApi = new RestApi("exampleRestApi", RestApiArgs.builder() - * .name("example_api") + * var exampleRestApi = new RestApi("exampleRestApi", RestApiArgs.builder() + * .name("example_api") * .build()); * - * var exampleDocumentationPart = new DocumentationPart("exampleDocumentationPart", DocumentationPartArgs.builder() + * var exampleDocumentationPart = new DocumentationPart("exampleDocumentationPart", DocumentationPartArgs.builder() * .location(DocumentationPartLocationArgs.builder() - * .type("API") + * .type("API") * .build()) - * .properties("{\"description\":\"Example\"}") + * .properties("{\"description\":\"Example\"}") * .restApiId(exampleRestApi.id()) * .build()); * - * var example = new DocumentationVersion("example", DocumentationVersionArgs.builder() - * .version("example_version") + * var example = new DocumentationVersion("example", DocumentationVersionArgs.builder() + * .version("example_version") * .restApiId(exampleRestApi.id()) - * .description("Example description") + * .description("Example description") * .build(), CustomResourceOptions.builder() * .dependsOn(exampleDocumentationPart) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/DomainName.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/DomainName.java index 397dbcf7706..805ea4b0e18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/DomainName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/DomainName.java @@ -51,7 +51,8 @@ * ### Edge Optimized (ACM Certificate) * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -75,16 +76,16 @@ * } * * public static void stack(Context ctx) { - * var example = new DomainName("example", DomainNameArgs.builder() + * var example = new DomainName("example", DomainNameArgs.builder() * .certificateArn(exampleAwsAcmCertificateValidation.certificateArn()) - * .domainName("api.example.com") + * .domainName("api.example.com") * .build()); * * // Example DNS record using Route53. * // Route53 is not specifically required; any DNS host can be used. - * var exampleRecord = new Record("exampleRecord", RecordArgs.builder() + * var exampleRecord = new Record("exampleRecord", RecordArgs.builder() * .name(example.domainName()) - * .type("A") + * .type("A") * .zoneId(exampleAwsRoute53Zone.id()) * .aliases(RecordAliasArgs.builder() * .evaluateTargetHealth(true) @@ -95,13 +96,15 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Regional (ACM Certificate) * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -126,19 +129,19 @@ * } * * public static void stack(Context ctx) { - * var example = new DomainName("example", DomainNameArgs.builder() - * .domainName("api.example.com") + * var example = new DomainName("example", DomainNameArgs.builder() + * .domainName("api.example.com") * .regionalCertificateArn(exampleAwsAcmCertificateValidation.certificateArn()) * .endpointConfiguration(DomainNameEndpointConfigurationArgs.builder() - * .types("REGIONAL") + * .types("REGIONAL") * .build()) * .build()); * * // Example DNS record using Route53. * // Route53 is not specifically required; any DNS host can be used. - * var exampleRecord = new Record("exampleRecord", RecordArgs.builder() + * var exampleRecord = new Record("exampleRecord", RecordArgs.builder() * .name(example.domainName()) - * .type("A") + * .type("A") * .zoneId(exampleAwsRoute53Zone.id()) * .aliases(RecordAliasArgs.builder() * .evaluateTargetHealth(true) @@ -149,7 +152,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Integration.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Integration.java index bdeb65d3d36..d66ecfaecab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Integration.java @@ -24,7 +24,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -51,49 +52,51 @@ * } * * public static void stack(Context ctx) { - * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() - * .name("MyDemoAPI") - * .description("This is my API for demonstration purposes") + * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() + * .name("MyDemoAPI") + * .description("This is my API for demonstration purposes") * .build()); * - * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() + * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() * .restApi(myDemoAPI.id()) * .parentId(myDemoAPI.rootResourceId()) - * .pathPart("mydemoresource") + * .pathPart("mydemoresource") * .build()); * - * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() + * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) - * .httpMethod("GET") - * .authorization("NONE") + * .httpMethod("GET") + * .authorization("NONE") * .build()); * - * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() + * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) - * .type("MOCK") - * .cacheKeyParameters("method.request.path.param") - * .cacheNamespace("foobar") + * .type("MOCK") + * .cacheKeyParameters("method.request.path.param") + * .cacheNamespace("foobar") * .timeoutMilliseconds(29000) - * .requestParameters(Map.of("integration.request.header.X-Authorization", "'static'")) - * .requestTemplates(Map.of("application/xml", """ + * .requestParameters(Map.of("integration.request.header.X-Authorization", "'static'")) + * .requestTemplates(Map.of("application/xml", """ * { - * "body" : $input.json('$') + * "body" : $input.json('$') * } - * """)) + * """)) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Lambda integration * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -130,86 +133,88 @@ * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var myregion = config.get("myregion"); - * final var accountId = config.get("accountId"); + * final var myregion = config.get("myregion"); + * final var accountId = config.get("accountId"); * // API Gateway - * var api = new RestApi("api", RestApiArgs.builder() - * .name("myapi") + * var api = new RestApi("api", RestApiArgs.builder() + * .name("myapi") * .build()); * - * var resource = new Resource("resource", ResourceArgs.builder() - * .pathPart("resource") + * var resource = new Resource("resource", ResourceArgs.builder() + * .pathPart("resource") * .parentId(api.rootResourceId()) * .restApi(api.id()) * .build()); * - * var method = new Method("method", MethodArgs.builder() + * var method = new Method("method", MethodArgs.builder() * .restApi(api.id()) * .resourceId(resource.id()) - * .httpMethod("GET") - * .authorization("NONE") + * .httpMethod("GET") + * .authorization("NONE") * .build()); * * // IAM * final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("Service") - * .identifiers("lambda.amazonaws.com") + * .type("Service") + * .identifiers("lambda.amazonaws.com") * .build()) - * .actions("sts:AssumeRole") + * .actions("sts:AssumeRole") * .build()) * .build()); * - * var role = new Role("role", RoleArgs.builder() - * .name("myrole") - * .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) + * var role = new Role("role", RoleArgs.builder() + * .name("myrole") + * .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())) * .build()); * - * var lambda = new Function("lambda", FunctionArgs.builder() - * .code(new FileArchive("lambda.zip")) - * .name("mylambda") + * var lambda = new Function("lambda", FunctionArgs.builder() + * .code(new FileArchive("lambda.zip")) + * .name("mylambda") * .role(role.arn()) - * .handler("lambda.lambda_handler") - * .runtime("python3.7") + * .handler("lambda.lambda_handler") + * .runtime("python3.7") * .sourceCodeHash(StdFunctions.filebase64sha256(Filebase64sha256Args.builder() - * .input("lambda.zip") + * .input("lambda.zip") * .build()).result()) * .build()); * - * var integration = new Integration("integration", IntegrationArgs.builder() + * var integration = new Integration("integration", IntegrationArgs.builder() * .restApi(api.id()) * .resourceId(resource.id()) * .httpMethod(method.httpMethod()) - * .integrationHttpMethod("POST") - * .type("AWS_PROXY") + * .integrationHttpMethod("POST") + * .type("AWS_PROXY") * .uri(lambda.invokeArn()) * .build()); * * // Lambda - * var apigwLambda = new Permission("apigwLambda", PermissionArgs.builder() - * .statementId("AllowExecutionFromAPIGateway") - * .action("lambda:InvokeFunction") + * var apigwLambda = new Permission("apigwLambda", PermissionArgs.builder() + * .statementId("AllowExecutionFromAPIGateway") + * .action("lambda:InvokeFunction") * .function(lambda.name()) - * .principal("apigateway.amazonaws.com") - * .sourceArn(Output.tuple(api.id(), method.httpMethod(), resource.path()).applyValue(values -> { + * .principal("apigateway.amazonaws.com") + * .sourceArn(Output.tuple(api.id(), method.httpMethod(), resource.path()).applyValue(values -> { * var id = values.t1; * var httpMethod = values.t2; * var path = values.t3; - * return String.format("arn:aws:execute-api:%s:%s:%s/*{@literal /}%s%s", myregion,accountId,id,httpMethod,path); + * return String.format("arn:aws:execute-api:%s:%s:%s/*{@literal /}%s%s", myregion,accountId,id,httpMethod,path); * })) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## VPC Link * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -241,64 +246,65 @@ * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var name = config.get("name"); - * final var subnetId = config.get("subnetId"); - * var test = new LoadBalancer("test", LoadBalancerArgs.builder() + * final var name = config.get("name"); + * final var subnetId = config.get("subnetId"); + * var test = new LoadBalancer("test", LoadBalancerArgs.builder() * .name(name) * .internal(true) - * .loadBalancerType("network") + * .loadBalancerType("network") * .subnets(subnetId) * .build()); * - * var testVpcLink = new VpcLink("testVpcLink", VpcLinkArgs.builder() + * var testVpcLink = new VpcLink("testVpcLink", VpcLinkArgs.builder() * .name(name) * .targetArn(test.arn()) * .build()); * - * var testRestApi = new RestApi("testRestApi", RestApiArgs.builder() + * var testRestApi = new RestApi("testRestApi", RestApiArgs.builder() * .name(name) * .build()); * - * var testResource = new Resource("testResource", ResourceArgs.builder() + * var testResource = new Resource("testResource", ResourceArgs.builder() * .restApi(testRestApi.id()) * .parentId(testRestApi.rootResourceId()) - * .pathPart("test") + * .pathPart("test") * .build()); * - * var testMethod = new Method("testMethod", MethodArgs.builder() + * var testMethod = new Method("testMethod", MethodArgs.builder() * .restApi(testRestApi.id()) * .resourceId(testResource.id()) - * .httpMethod("GET") - * .authorization("NONE") - * .requestModels(Map.of("application/json", "Error")) + * .httpMethod("GET") + * .authorization("NONE") + * .requestModels(Map.of("application/json", "Error")) * .build()); * - * var testIntegration = new Integration("testIntegration", IntegrationArgs.builder() + * var testIntegration = new Integration("testIntegration", IntegrationArgs.builder() * .restApi(testRestApi.id()) * .resourceId(testResource.id()) * .httpMethod(testMethod.httpMethod()) * .requestTemplates(Map.ofEntries( - * Map.entry("application/json", ""), - * Map.entry("application/xml", """ - * #set($inputRoot = $input.path('$')) - * { } """) + * Map.entry("application/json", ""), + * Map.entry("application/xml", """ + * #set($inputRoot = $input.path('$')) + * { } """) * )) * .requestParameters(Map.ofEntries( - * Map.entry("integration.request.header.X-Authorization", "'static'"), - * Map.entry("integration.request.header.X-Foo", "'Bar'") + * Map.entry("integration.request.header.X-Authorization", "'static'"), + * Map.entry("integration.request.header.X-Foo", "'Bar'") * )) - * .type("HTTP") - * .uri("https://www.google.de") - * .integrationHttpMethod("GET") - * .passthroughBehavior("WHEN_NO_MATCH") - * .contentHandling("CONVERT_TO_TEXT") - * .connectionType("VPC_LINK") + * .type("HTTP") + * .uri("https://www.google.de") + * .integrationHttpMethod("GET") + * .passthroughBehavior("WHEN_NO_MATCH") + * .contentHandling("CONVERT_TO_TEXT") + * .connectionType("VPC_LINK") * .connectionId(testVpcLink.id()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/IntegrationResponse.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/IntegrationResponse.java index 61e8465ac58..ba4887f3e64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/IntegrationResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/IntegrationResponse.java @@ -24,7 +24,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -55,55 +56,56 @@ * } * * public static void stack(Context ctx) { - * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() - * .name("MyDemoAPI") - * .description("This is my API for demonstration purposes") + * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() + * .name("MyDemoAPI") + * .description("This is my API for demonstration purposes") * .build()); * - * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() + * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() * .restApi(myDemoAPI.id()) * .parentId(myDemoAPI.rootResourceId()) - * .pathPart("mydemoresource") + * .pathPart("mydemoresource") * .build()); * - * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() + * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) - * .httpMethod("GET") - * .authorization("NONE") + * .httpMethod("GET") + * .authorization("NONE") * .build()); * - * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() + * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) - * .type("MOCK") + * .type("MOCK") * .build()); * - * var response200 = new MethodResponse("response200", MethodResponseArgs.builder() + * var response200 = new MethodResponse("response200", MethodResponseArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) - * .statusCode("200") + * .statusCode("200") * .build()); * - * var myDemoIntegrationResponse = new IntegrationResponse("myDemoIntegrationResponse", IntegrationResponseArgs.builder() + * var myDemoIntegrationResponse = new IntegrationResponse("myDemoIntegrationResponse", IntegrationResponseArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) * .statusCode(response200.statusCode()) - * .responseTemplates(Map.of("application/xml", """ - * #set($inputRoot = $input.path('$')) - * <?xml version="1.0" encoding="UTF-8"?> - * <message> + * .responseTemplates(Map.of("application/xml", """ + * #set($inputRoot = $input.path('$')) + * + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Method.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Method.java index a74727f59c2..11051fcb08e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Method.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Method.java @@ -23,7 +23,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + ** $inputRoot.body - * </message> - * """)) + * + * """)) * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -48,33 +49,35 @@ * } * * public static void stack(Context ctx) { - * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() - * .name("MyDemoAPI") - * .description("This is my API for demonstration purposes") + * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() + * .name("MyDemoAPI") + * .description("This is my API for demonstration purposes") * .build()); * - * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() + * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() * .restApi(myDemoAPI.id()) * .parentId(myDemoAPI.rootResourceId()) - * .pathPart("mydemoresource") + * .pathPart("mydemoresource") * .build()); * - * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() + * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) - * .httpMethod("GET") - * .authorization("NONE") + * .httpMethod("GET") + * .authorization("NONE") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Usage with Cognito User Pool Authorizer * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -104,40 +107,41 @@ * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var cognitoUserPoolName = config.get("cognitoUserPoolName"); + * final var cognitoUserPoolName = config.get("cognitoUserPoolName"); * final var this = CognitoFunctions.getUserPools(GetUserPoolsArgs.builder() * .name(cognitoUserPoolName) * .build()); * - * var thisRestApi = new RestApi("thisRestApi", RestApiArgs.builder() - * .name("with-authorizer") + * var thisRestApi = new RestApi("thisRestApi", RestApiArgs.builder() + * .name("with-authorizer") * .build()); * - * var thisResource = new Resource("thisResource", ResourceArgs.builder() + * var thisResource = new Resource("thisResource", ResourceArgs.builder() * .restApi(thisRestApi.id()) * .parentId(thisRestApi.rootResourceId()) - * .pathPart("{proxy+}") + * .pathPart("{proxy+}") * .build()); * - * var thisAuthorizer = new Authorizer("thisAuthorizer", AuthorizerArgs.builder() - * .name("CognitoUserPoolAuthorizer") - * .type("COGNITO_USER_POOLS") + * var thisAuthorizer = new Authorizer("thisAuthorizer", AuthorizerArgs.builder() + * .name("CognitoUserPoolAuthorizer") + * .type("COGNITO_USER_POOLS") * .restApi(thisRestApi.id()) * .providerArns(this_.arns()) * .build()); * - * var any = new Method("any", MethodArgs.builder() + * var any = new Method("any", MethodArgs.builder() * .restApi(thisRestApi.id()) * .resourceId(thisResource.id()) - * .httpMethod("ANY") - * .authorization("COGNITO_USER_POOLS") + * .httpMethod("ANY") + * .authorization("COGNITO_USER_POOLS") * .authorizerId(thisAuthorizer.id()) - * .requestParameters(Map.of("method.request.path.proxy", true)) + * .requestParameters(Map.of("method.request.path.proxy", true)) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodResponse.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodResponse.java index 8c2891420fe..1cbe10be3ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodResponse.java @@ -24,7 +24,8 @@ * ### Basic Response * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -53,47 +54,49 @@ * } * * public static void stack(Context ctx) { - * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() - * .name("MyDemoAPI") - * .description("This is my API for demonstration purposes") + * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() + * .name("MyDemoAPI") + * .description("This is my API for demonstration purposes") * .build()); * - * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() + * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() * .restApi(myDemoAPI.id()) * .parentId(myDemoAPI.rootResourceId()) - * .pathPart("mydemoresource") + * .pathPart("mydemoresource") * .build()); * - * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() + * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) - * .httpMethod("GET") - * .authorization("NONE") + * .httpMethod("GET") + * .authorization("NONE") * .build()); * - * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() + * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) - * .type("MOCK") + * .type("MOCK") * .build()); * - * var response200 = new MethodResponse("response200", MethodResponseArgs.builder() + * var response200 = new MethodResponse("response200", MethodResponseArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) - * .statusCode("200") + * .statusCode("200") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Response with Custom Header and Model * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -125,64 +128,65 @@ * } * * public static void stack(Context ctx) { - * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() - * .name("MyDemoAPI") - * .description("This is my API for demonstration purposes") + * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() + * .name("MyDemoAPI") + * .description("This is my API for demonstration purposes") * .build()); * - * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() + * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() * .restApi(myDemoAPI.id()) * .parentId(myDemoAPI.rootResourceId()) - * .pathPart("mydemoresource") + * .pathPart("mydemoresource") * .build()); * - * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() + * var myDemoMethod = new Method("myDemoMethod", MethodArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) - * .httpMethod("GET") - * .authorization("NONE") + * .httpMethod("GET") + * .authorization("NONE") * .build()); * - * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() + * var myDemoIntegration = new Integration("myDemoIntegration", IntegrationArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) - * .type("MOCK") + * .type("MOCK") * .build()); * - * var myDemoResponseModel = new Model("myDemoResponseModel", ModelArgs.builder() + * var myDemoResponseModel = new Model("myDemoResponseModel", ModelArgs.builder() * .restApi(myDemoAPI.id()) - * .name("MyDemoResponseModel") - * .description("API response for MyDemoMethod") - * .contentType("application/json") + * .name("MyDemoResponseModel") + * .description("API response for MyDemoMethod") + * .contentType("application/json") * .schema(serializeJson( * jsonObject( - * jsonProperty("$schema", "http://json-schema.org/draft-04/schema#"), - * jsonProperty("title", "MyDemoResponse"), - * jsonProperty("type", "object"), - * jsonProperty("properties", jsonObject( - * jsonProperty("Message", jsonObject( - * jsonProperty("type", "string") + * jsonProperty("$schema", "http://json-schema.org/draft-04/schema#"), + * jsonProperty("title", "MyDemoResponse"), + * jsonProperty("type", "object"), + * jsonProperty("properties", jsonObject( + * jsonProperty("Message", jsonObject( + * jsonProperty("type", "string") * )) * )) * ))) * .build()); * - * var response200 = new MethodResponse("response200", MethodResponseArgs.builder() + * var response200 = new MethodResponse("response200", MethodResponseArgs.builder() * .restApi(myDemoAPI.id()) * .resourceId(myDemoResource.id()) * .httpMethod(myDemoMethod.httpMethod()) - * .statusCode("200") - * .responseModels(Map.of("application/json", "MyDemoResponseModel")) + * .statusCode("200") + * .responseModels(Map.of("application/json", "MyDemoResponseModel")) * .responseParameters(Map.ofEntries( - * Map.entry("method.response.header.Content-Type", false), - * Map.entry("method-response-header.X-My-Demo-Header", false) + * Map.entry("method.response.header.Content-Type", false), + * Map.entry("method-response-header.X-My-Demo-Header", false) * )) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodSettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodSettings.java index eef8489692a..a2f5d668710 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/MethodSettings.java @@ -26,7 +26,8 @@ * ### Off * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -48,24 +49,26 @@ * } * * public static void stack(Context ctx) { - * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() + * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() * .restApi(example.id()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .methodPath("path1/GET") + * .methodPath("path1/GET") * .settings(MethodSettingsSettingsArgs.builder() - * .loggingLevel("OFF") + * .loggingLevel("OFF") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Errors Only * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -87,12 +90,12 @@ * } * * public static void stack(Context ctx) { - * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() + * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() * .restApi(example.id()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .methodPath("path1/GET") + * .methodPath("path1/GET") * .settings(MethodSettingsSettingsArgs.builder() - * .loggingLevel("ERROR") + * .loggingLevel("ERROR") * .metricsEnabled(true) * .dataTraceEnabled(false) * .build()) @@ -100,13 +103,15 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Errors and Info Logs * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -128,12 +133,12 @@ * } * * public static void stack(Context ctx) { - * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() + * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() * .restApi(example.id()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .methodPath("path1/GET") + * .methodPath("path1/GET") * .settings(MethodSettingsSettingsArgs.builder() - * .loggingLevel("INFO") + * .loggingLevel("INFO") * .metricsEnabled(true) * .dataTraceEnabled(false) * .build()) @@ -141,13 +146,15 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Full Request and Response Logs * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -169,12 +176,12 @@ * } * * public static void stack(Context ctx) { - * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() + * var pathSpecific = new MethodSettings("pathSpecific", MethodSettingsArgs.builder() * .restApi(example.id()) * .stageName(exampleAwsApiGatewayStage.stageName()) - * .methodPath("path1/GET") + * .methodPath("path1/GET") * .settings(MethodSettingsSettingsArgs.builder() - * .loggingLevel("INFO") + * .loggingLevel("INFO") * .metricsEnabled(true) * .dataTraceEnabled(true) * .build()) @@ -182,7 +189,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Model.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Model.java index c0f32506c14..9083fc9b7cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Model.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Model.java @@ -20,7 +20,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -44,25 +45,26 @@ * } * * public static void stack(Context ctx) { - * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() - * .name("MyDemoAPI") - * .description("This is my API for demonstration purposes") + * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() + * .name("MyDemoAPI") + * .description("This is my API for demonstration purposes") * .build()); * - * var myDemoModel = new Model("myDemoModel", ModelArgs.builder() + * var myDemoModel = new Model("myDemoModel", ModelArgs.builder() * .restApi(myDemoAPI.id()) - * .name("user") - * .description("a JSON schema") - * .contentType("application/json") + * .name("user") + * .description("a JSON schema") + * .contentType("application/json") * .schema(serializeJson( * jsonObject( - * jsonProperty("type", "object") + * jsonProperty("type", "object") * ))) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/RequestValidator.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/RequestValidator.java index c61176398b9..598bd5b0a91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/RequestValidator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/RequestValidator.java @@ -21,7 +21,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -42,8 +43,8 @@ * } * * public static void stack(Context ctx) { - * var example = new RequestValidator("example", RequestValidatorArgs.builder() - * .name("example") + * var example = new RequestValidator("example", RequestValidatorArgs.builder() + * .name("example") * .restApi(exampleAwsApiGatewayRestApi.id()) * .validateRequestBody(true) * .validateRequestParameters(true) @@ -51,7 +52,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Resource.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Resource.java index a30d14a273b..cbd4df18b14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Resource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Resource.java @@ -19,7 +19,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -42,20 +43,21 @@ * } * * public static void stack(Context ctx) { - * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() - * .name("MyDemoAPI") - * .description("This is my API for demonstration purposes") + * var myDemoAPI = new RestApi("myDemoAPI", RestApiArgs.builder() + * .name("MyDemoAPI") + * .description("This is my API for demonstration purposes") * .build()); * - * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() + * var myDemoResource = new Resource("myDemoResource", ResourceArgs.builder() * .restApi(myDemoAPI.id()) * .parentId(myDemoAPI.rootResourceId()) - * .pathPart("mydemoresource") + * .pathPart("mydemoresource") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Response.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Response.java index ca249ce0c9e..273e06889e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Response.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Response.java @@ -21,7 +21,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -44,21 +45,22 @@ * } * * public static void stack(Context ctx) { - * var main = new RestApi("main", RestApiArgs.builder() - * .name("MyDemoAPI") + * var main = new RestApi("main", RestApiArgs.builder() + * .name("MyDemoAPI") * .build()); * - * var test = new Response("test", ResponseArgs.builder() + * var test = new Response("test", ResponseArgs.builder() * .restApiId(main.id()) - * .statusCode("401") - * .responseType("UNAUTHORIZED") - * .responseTemplates(Map.of("application/json", "{\"message\":$context.error.messageString}")) - * .responseParameters(Map.of("gatewayresponse.header.Authorization", "'Basic'")) + * .statusCode("401") + * .responseType("UNAUTHORIZED") + * .responseTemplates(Map.of("application/json", "{\"message\":$context.error.messageString}")) + * .responseParameters(Map.of("gatewayresponse.header.Authorization", "'Basic'")) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/RestApiPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/RestApiPolicy.java index 1b960eb659e..18b3817856d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/RestApiPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/RestApiPolicy.java @@ -23,7 +23,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -48,35 +49,36 @@ * } * * public static void stack(Context ctx) { - * var testRestApi = new RestApi("testRestApi", RestApiArgs.builder() - * .name("example-rest-api") + * var testRestApi = new RestApi("testRestApi", RestApiArgs.builder() + * .name("example-rest-api") * .build()); * * final var test = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder() * .statements(GetPolicyDocumentStatementArgs.builder() - * .effect("Allow") + * .effect("Allow") * .principals(GetPolicyDocumentStatementPrincipalArgs.builder() - * .type("AWS") - * .identifiers("*") + * .type("AWS") + * .identifiers("*") * .build()) - * .actions("execute-api:Invoke") + * .actions("execute-api:Invoke") * .resources(testRestApi.executionArn()) * .conditions(GetPolicyDocumentStatementConditionArgs.builder() - * .test("IpAddress") - * .variable("aws:SourceIp") - * .values("123.123.123.123/32") + * .test("IpAddress") + * .variable("aws:SourceIp") + * .values("123.123.123.123/32") * .build()) * .build()) * .build()); * - * var testRestApiPolicy = new RestApiPolicy("testRestApiPolicy", RestApiPolicyArgs.builder() + * var testRestApiPolicy = new RestApiPolicy("testRestApiPolicy", RestApiPolicyArgs.builder() * .restApiId(testRestApi.id()) - * .policy(test.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(test -> test.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) + * .policy(test.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(test -> test.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Stage.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Stage.java index 5847814e543..8df8422bd81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/Stage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/Stage.java @@ -26,7 +26,8 @@ * API Gateway provides the ability to [enable CloudWatch API logging](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html). To manage the CloudWatch Log Group when this feature is enabled, the `aws.cloudwatch.LogGroup` resource can be used where the name matches the API Gateway naming convention. If the CloudWatch Log Group previously exists, import the `aws.cloudwatch.LogGroup` resource into Pulumi as a one time operation. You can recreate the environment without import. * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -52,15 +53,15 @@ * * public static void stack(Context ctx) { * final var config = ctx.config(); - * final var stageName = config.get("stageName").orElse("example"); - * var example = new RestApi("example"); + * final var stageName = config.get("stageName").orElse("example"); + * var example = new RestApi("example"); * - * var exampleLogGroup = new LogGroup("exampleLogGroup", LogGroupArgs.builder() - * .name(example.id().applyValue(id -> String.format("API-Gateway-Execution-Logs_%s/%s", id,stageName))) + * var exampleLogGroup = new LogGroup("exampleLogGroup", LogGroupArgs.builder() + * .name(example.id().applyValue(id -> String.format("API-Gateway-Execution-Logs_%s/%s", id,stageName))) * .retentionInDays(7) * .build()); * - * var exampleStage = new Stage("exampleStage", StageArgs.builder() + * var exampleStage = new Stage("exampleStage", StageArgs.builder() * .stageName(stageName) * .build(), CustomResourceOptions.builder() * .dependsOn(exampleLogGroup) @@ -68,7 +69,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/UsagePlanKey.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/UsagePlanKey.java index 283050fc6ac..77f3eba885d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/UsagePlanKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/UsagePlanKey.java @@ -19,7 +19,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -47,32 +48,33 @@ * } * * public static void stack(Context ctx) { - * var test = new RestApi("test", RestApiArgs.builder() - * .name("MyDemoAPI") + * var test = new RestApi("test", RestApiArgs.builder() + * .name("MyDemoAPI") * .build()); * * // ... - * var myusageplan = new UsagePlan("myusageplan", UsagePlanArgs.builder() - * .name("my_usage_plan") + * var myusageplan = new UsagePlan("myusageplan", UsagePlanArgs.builder() + * .name("my_usage_plan") * .apiStages(UsagePlanApiStageArgs.builder() * .apiId(test.id()) * .stage(foo.stageName()) * .build()) * .build()); * - * var mykey = new ApiKey("mykey", ApiKeyArgs.builder() - * .name("my_key") + * var mykey = new ApiKey("mykey", ApiKeyArgs.builder() + * .name("my_key") * .build()); * - * var main = new UsagePlanKey("main", UsagePlanKeyArgs.builder() + * var main = new UsagePlanKey("main", UsagePlanKeyArgs.builder() * .keyId(mykey.id()) - * .keyType("API_KEY") + * .keyType("API_KEY") * .usagePlanId(myusageplan.id()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/VpcLink.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/VpcLink.java index 4ac94980be7..71892082fa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/VpcLink.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/VpcLink.java @@ -24,7 +24,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -48,24 +49,25 @@ * } * * public static void stack(Context ctx) { - * var example = new LoadBalancer("example", LoadBalancerArgs.builder() - * .name("example") + * var example = new LoadBalancer("example", LoadBalancerArgs.builder() + * .name("example") * .internal(true) - * .loadBalancerType("network") + * .loadBalancerType("network") * .subnetMappings(LoadBalancerSubnetMappingArgs.builder() - * .subnetId("12345") + * .subnetId("12345") * .build()) * .build()); * - * var exampleVpcLink = new VpcLink("exampleVpcLink", VpcLinkArgs.builder() - * .name("example") - * .description("example description") + * var exampleVpcLink = new VpcLink("exampleVpcLink", VpcLinkArgs.builder() + * .name("example") + * .description("example description") * .targetArn(example.arn()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Api.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Api.java index 163e3efc65b..52f85673cd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Api.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Api.java @@ -27,7 +27,8 @@ * ### Basic WebSocket API * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -48,21 +49,23 @@ * } * * public static void stack(Context ctx) { - * var example = new Api("example", ApiArgs.builder() - * .name("example-websocket-api") - * .protocolType("WEBSOCKET") - * .routeSelectionExpression("$request.body.action") + * var example = new Api("example", ApiArgs.builder() + * .name("example-websocket-api") + * .protocolType("WEBSOCKET") + * .routeSelectionExpression("$request.body.action") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Basic HTTP API * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -83,14 +86,15 @@ * } * * public static void stack(Context ctx) { - * var example = new Api("example", ApiArgs.builder() - * .name("example-http-api") - * .protocolType("HTTP") + * var example = new Api("example", ApiArgs.builder() + * .name("example-http-api") + * .protocolType("HTTP") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import @@ -226,7 +230,7 @@ public Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -44,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var example = new ApiMapping("example", ApiMappingArgs.builder() + * var example = new ApiMapping("example", ApiMappingArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) * .domainName(exampleAwsApigatewayv2DomainName.id()) * .stage(exampleAwsApigatewayv2Stage.id()) @@ -52,7 +53,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Apigatewayv2Functions.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Apigatewayv2Functions.java index 5d6542b0bc2..0e5a834ad0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Apigatewayv2Functions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Apigatewayv2Functions.java @@ -29,7 +29,8 @@ public final class Apigatewayv2Functions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -51,12 +52,13 @@ public final class Apigatewayv2Functions { * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApi(GetApiArgs.builder() - * .apiId("aabbccddee") + * .apiId("aabbccddee") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * */ @@ -69,7 +71,8 @@ public static Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -91,12 +94,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -109,7 +113,8 @@ public static CompletableFuturegetApi(GetApiArgs args) { * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApi(GetApiArgs.builder() - * .apiId("aabbccddee") + * .apiId("aabbccddee") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -131,12 +136,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -149,7 +155,8 @@ public static OutputgetApiPlain(GetApiPlainArgs args) * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApi(GetApiArgs.builder() - * .apiId("aabbccddee") + * .apiId("aabbccddee") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -171,12 +178,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -189,7 +197,8 @@ public static CompletableFuturegetApi(GetApiArgs args, InvokeOptions options * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApi(GetApiArgs.builder() - * .apiId("aabbccddee") + * .apiId("aabbccddee") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -211,12 +220,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -229,7 +239,8 @@ public static OutputgetApiPlain(GetApiPlainArgs args, * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApis(GetApisArgs.builder() - * .protocolType("HTTP") + * .protocolType("HTTP") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -251,12 +262,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -269,7 +281,8 @@ public static CompletableFuturegetApis() { * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApis(GetApisArgs.builder() - * .protocolType("HTTP") + * .protocolType("HTTP") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -291,12 +304,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -309,7 +323,8 @@ public static OutputgetApisPlain() { * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApis(GetApisArgs.builder() - * .protocolType("HTTP") + * .protocolType("HTTP") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -331,12 +346,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -349,7 +365,8 @@ public static CompletableFuturegetApis(GetApisArgs args) { * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApis(GetApisArgs.builder() - * .protocolType("HTTP") + * .protocolType("HTTP") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -371,12 +388,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -389,7 +407,8 @@ public static OutputgetApisPlain(GetApisPlainArgs arg * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApis(GetApisArgs.builder() - * .protocolType("HTTP") + * .protocolType("HTTP") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -411,12 +430,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -429,7 +449,8 @@ public static CompletableFuturegetApis(GetApisArgs args, InvokeOptions opti * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getApis(GetApisArgs.builder() - * .protocolType("HTTP") + * .protocolType("HTTP") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -452,13 +473,14 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -471,7 +493,8 @@ public static OutputgetApisPlain(GetApisPlainArgs arg * public static void stack(Context ctx) { * final var test = Apigatewayv2Functions.getExport(GetExportArgs.builder() * .apiId(testAwsApigatewayv2Route.apiId()) - * .specification("OAS30") - * .outputType("JSON") + * .specification("OAS30") + * .outputType("JSON") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -494,13 +517,14 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -513,7 +537,8 @@ public static CompletableFuturegetExport(GetExportArgs args) { * public static void stack(Context ctx) { * final var test = Apigatewayv2Functions.getExport(GetExportArgs.builder() * .apiId(testAwsApigatewayv2Route.apiId()) - * .specification("OAS30") - * .outputType("JSON") + * .specification("OAS30") + * .outputType("JSON") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -536,13 +561,14 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -555,7 +581,8 @@ public static OutputgetExportPlain(GetExportPlainAr * public static void stack(Context ctx) { * final var test = Apigatewayv2Functions.getExport(GetExportArgs.builder() * .apiId(testAwsApigatewayv2Route.apiId()) - * .specification("OAS30") - * .outputType("JSON") + * .specification("OAS30") + * .outputType("JSON") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -578,13 +605,14 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -599,7 +627,8 @@ public static CompletableFuturegetExport(GetExportArgs args, InvokeOption * public static void stack(Context ctx) { * final var test = Apigatewayv2Functions.getExport(GetExportArgs.builder() * .apiId(testAwsApigatewayv2Route.apiId()) - * .specification("OAS30") - * .outputType("JSON") + * .specification("OAS30") + * .outputType("JSON") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -621,12 +650,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -641,7 +671,8 @@ public static OutputgetExportPlain(GetExportPlainAr * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getVpcLink(GetVpcLinkArgs.builder() - * .vpcLinkId("example") + * .vpcLinkId("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -663,12 +694,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ @@ -683,7 +715,8 @@ public static CompletableFuturegetVpcLink(GetVpcLinkArgs args) { * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getVpcLink(GetVpcLinkArgs.builder() - * .vpcLinkId("example") + * .vpcLinkId("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -705,12 +738,13 @@ public static CompletableFuture* <!--End PulumiCodeChooser --> * */ @@ -725,7 +759,8 @@ public static OutputgetVpcLinkPlain(GetVpcLinkPlai * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getVpcLink(GetVpcLinkArgs.builder() - * .vpcLinkId("example") + * .vpcLinkId("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -747,12 +782,13 @@ public static Output* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Authorizer.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Authorizer.java index 15dd76a5767..8b1ee217a54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Authorizer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Authorizer.java @@ -27,7 +27,8 @@ * ### Basic WebSocket API * * <!--Start PulumiCodeChooser --> - * ```java + *getVpcLink(GetVpcLinkArgs args, InvokeOpt * * public static void stack(Context ctx) { * final var example = Apigatewayv2Functions.getVpcLink(GetVpcLinkArgs.builder() - * .vpcLinkId("example") + * .vpcLinkId("example") * .build()); * * } * } - * ``` + * } + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -48,23 +49,25 @@ * } * * public static void stack(Context ctx) { - * var example = new Authorizer("example", AuthorizerArgs.builder() + * var example = new Authorizer("example", AuthorizerArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) - * .authorizerType("REQUEST") + * .authorizerType("REQUEST") * .authorizerUri(exampleAwsLambdaFunction.invokeArn()) - * .identitySources("route.request.header.Auth") - * .name("example-authorizer") + * .identitySources("route.request.header.Auth") + * .name("example-authorizer") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Basic HTTP API * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -85,18 +88,19 @@ * } * * public static void stack(Context ctx) { - * var example = new Authorizer("example", AuthorizerArgs.builder() + * var example = new Authorizer("example", AuthorizerArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) - * .authorizerType("REQUEST") + * .authorizerType("REQUEST") * .authorizerUri(exampleAwsLambdaFunction.invokeArn()) - * .identitySources("$request.header.Authorization") - * .name("example-authorizer") - * .authorizerPayloadFormatVersion("2.0") + * .identitySources("$request.header.Authorization") + * .name("example-authorizer") + * .authorizerPayloadFormatVersion("2.0") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/DomainName.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/DomainName.java index c2ee2d01ed0..3ea3a77555b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/DomainName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/DomainName.java @@ -29,7 +29,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -51,24 +52,26 @@ * } * * public static void stack(Context ctx) { - * var example = new DomainName("example", DomainNameArgs.builder() - * .domainName("ws-api.example.com") + * var example = new DomainName("example", DomainNameArgs.builder() + * .domainName("ws-api.example.com") * .domainNameConfiguration(DomainNameDomainNameConfigurationArgs.builder() * .certificateArn(exampleAwsAcmCertificate.arn()) - * .endpointType("REGIONAL") - * .securityPolicy("TLS_1_2") + * .endpointType("REGIONAL") + * .securityPolicy("TLS_1_2") * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Associated Route 53 Resource Record * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -93,29 +96,30 @@ * } * * public static void stack(Context ctx) { - * var example = new DomainName("example", DomainNameArgs.builder() - * .domainName("http-api.example.com") + * var example = new DomainName("example", DomainNameArgs.builder() + * .domainName("http-api.example.com") * .domainNameConfiguration(DomainNameDomainNameConfigurationArgs.builder() * .certificateArn(exampleAwsAcmCertificate.arn()) - * .endpointType("REGIONAL") - * .securityPolicy("TLS_1_2") + * .endpointType("REGIONAL") + * .securityPolicy("TLS_1_2") * .build()) * .build()); * - * var exampleRecord = new Record("exampleRecord", RecordArgs.builder() + * var exampleRecord = new Record("exampleRecord", RecordArgs.builder() * .name(example.domainName()) - * .type("A") + * .type("A") * .zoneId(exampleAwsRoute53Zone.zoneId()) * .aliases(RecordAliasArgs.builder() - * .name(example.domainNameConfiguration().applyValue(domainNameConfiguration -> domainNameConfiguration.targetDomainName())) - * .zoneId(example.domainNameConfiguration().applyValue(domainNameConfiguration -> domainNameConfiguration.hostedZoneId())) + * .name(example.domainNameConfiguration().applyValue(domainNameConfiguration -> domainNameConfiguration.targetDomainName())) + * .zoneId(example.domainNameConfiguration().applyValue(domainNameConfiguration -> domainNameConfiguration.hostedZoneId())) * .evaluateTargetHealth(false) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Integration.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Integration.java index c2644efddb1..57f90def35d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Integration.java @@ -28,7 +28,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -49,20 +50,22 @@ * } * * public static void stack(Context ctx) { - * var example = new Integration("example", IntegrationArgs.builder() + * var example = new Integration("example", IntegrationArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) - * .integrationType("MOCK") + * .integrationType("MOCK") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Lambda Integration * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -86,34 +89,36 @@ * } * * public static void stack(Context ctx) { - * var example = new Function("example", FunctionArgs.builder() - * .code(new FileArchive("example.zip")) - * .name("Example") + * var example = new Function("example", FunctionArgs.builder() + * .code(new FileArchive("example.zip")) + * .name("Example") * .role(exampleAwsIamRole.arn()) - * .handler("index.handler") - * .runtime("nodejs16.x") + * .handler("index.handler") + * .runtime("nodejs16.x") * .build()); * - * var exampleIntegration = new Integration("exampleIntegration", IntegrationArgs.builder() + * var exampleIntegration = new Integration("exampleIntegration", IntegrationArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) - * .integrationType("AWS_PROXY") - * .connectionType("INTERNET") - * .contentHandlingStrategy("CONVERT_TO_TEXT") - * .description("Lambda example") - * .integrationMethod("POST") + * .integrationType("AWS_PROXY") + * .connectionType("INTERNET") + * .contentHandlingStrategy("CONVERT_TO_TEXT") + * .description("Lambda example") + * .integrationMethod("POST") * .integrationUri(example.invokeArn()) - * .passthroughBehavior("WHEN_NO_MATCH") + * .passthroughBehavior("WHEN_NO_MATCH") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### AWS Service Integration * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -134,27 +139,29 @@ * } * * public static void stack(Context ctx) { - * var example = new Integration("example", IntegrationArgs.builder() + * var example = new Integration("example", IntegrationArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) * .credentialsArn(exampleAwsIamRole.arn()) - * .description("SQS example") - * .integrationType("AWS_PROXY") - * .integrationSubtype("SQS-SendMessage") + * .description("SQS example") + * .integrationType("AWS_PROXY") + * .integrationSubtype("SQS-SendMessage") * .requestParameters(Map.ofEntries( - * Map.entry("QueueUrl", "$request.header.queueUrl"), - * Map.entry("MessageBody", "$request.body.message") + * Map.entry("QueueUrl", "$request.header.queueUrl"), + * Map.entry("MessageBody", "$request.body.message") * )) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### Private Integration * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -177,36 +184,37 @@ * } * * public static void stack(Context ctx) { - * var example = new Integration("example", IntegrationArgs.builder() + * var example = new Integration("example", IntegrationArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) * .credentialsArn(exampleAwsIamRole.arn()) - * .description("Example with a load balancer") - * .integrationType("HTTP_PROXY") + * .description("Example with a load balancer") + * .integrationType("HTTP_PROXY") * .integrationUri(exampleAwsLbListener.arn()) - * .integrationMethod("ANY") - * .connectionType("VPC_LINK") + * .integrationMethod("ANY") + * .connectionType("VPC_LINK") * .connectionId(exampleAwsApigatewayv2VpcLink.id()) * .tlsConfig(IntegrationTlsConfigArgs.builder() - * .serverNameToVerify("example.com") + * .serverNameToVerify("example.com") * .build()) * .requestParameters(Map.ofEntries( - * Map.entry("append:header.authforintegration", "$context.authorizer.authorizerResponse"), - * Map.entry("overwrite:path", "staticValueForIntegration") + * Map.entry("append:header.authforintegration", "$context.authorizer.authorizerResponse"), + * Map.entry("overwrite:path", "staticValueForIntegration") * )) * .responseParameters( * IntegrationResponseParameterArgs.builder() * .statusCode(403) - * .mappings(Map.of("append:header.auth", "$context.authorizer.authorizerResponse")) + * .mappings(Map.of("append:header.auth", "$context.authorizer.authorizerResponse")) * .build(), * IntegrationResponseParameterArgs.builder() * .statusCode(200) - * .mappings(Map.of("overwrite:statuscode", "204")) + * .mappings(Map.of("overwrite:statuscode", "204")) * .build()) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/IntegrationResponse.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/IntegrationResponse.java index efedbf1ef73..9d57da7bc23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/IntegrationResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/IntegrationResponse.java @@ -24,7 +24,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -45,15 +46,16 @@ * } * * public static void stack(Context ctx) { - * var example = new IntegrationResponse("example", IntegrationResponseArgs.builder() + * var example = new IntegrationResponse("example", IntegrationResponseArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) * .integrationId(exampleAwsApigatewayv2Integration.id()) - * .integrationResponseKey("/200/") + * .integrationResponseKey("/200/") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Model.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Model.java index 5b38dfcc7fc..e5c1d8aed2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Model.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Model.java @@ -22,7 +22,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -44,18 +45,18 @@ * } * * public static void stack(Context ctx) { - * var example = new Model("example", ModelArgs.builder() + * var example = new Model("example", ModelArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) - * .contentType("application/json") - * .name("example") + * .contentType("application/json") + * .name("example") * .schema(serializeJson( * jsonObject( - * jsonProperty("$schema", "http://json-schema.org/draft-04/schema#"), - * jsonProperty("title", "ExampleModel"), - * jsonProperty("type", "object"), - * jsonProperty("properties", jsonObject( - * jsonProperty("id", jsonObject( - * jsonProperty("type", "string") + * jsonProperty("$schema", "http://json-schema.org/draft-04/schema#"), + * jsonProperty("title", "ExampleModel"), + * jsonProperty("type", "object"), + * jsonProperty("properties", jsonObject( + * jsonProperty("id", jsonObject( + * jsonProperty("type", "string") * )) * )) * ))) @@ -63,7 +64,8 @@ * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Route.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Route.java index e7742f268d3..ddab8345412 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Route.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Route.java @@ -27,7 +27,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -50,26 +51,28 @@ * } * * public static void stack(Context ctx) { - * var example = new Api("example", ApiArgs.builder() - * .name("example-websocket-api") - * .protocolType("WEBSOCKET") - * .routeSelectionExpression("$request.body.action") + * var example = new Api("example", ApiArgs.builder() + * .name("example-websocket-api") + * .protocolType("WEBSOCKET") + * .routeSelectionExpression("$request.body.action") * .build()); * - * var exampleRoute = new Route("exampleRoute", RouteArgs.builder() + * var exampleRoute = new Route("exampleRoute", RouteArgs.builder() * .apiId(example.id()) - * .routeKey("$default") + * .routeKey("$default") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ### HTTP Proxy Integration * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -94,27 +97,28 @@ * } * * public static void stack(Context ctx) { - * var example = new Api("example", ApiArgs.builder() - * .name("example-http-api") - * .protocolType("HTTP") + * var example = new Api("example", ApiArgs.builder() + * .name("example-http-api") + * .protocolType("HTTP") * .build()); * - * var exampleIntegration = new Integration("exampleIntegration", IntegrationArgs.builder() + * var exampleIntegration = new Integration("exampleIntegration", IntegrationArgs.builder() * .apiId(example.id()) - * .integrationType("HTTP_PROXY") - * .integrationMethod("ANY") - * .integrationUri("https://example.com/{proxy}") + * .integrationType("HTTP_PROXY") + * .integrationMethod("ANY") + * .integrationUri("https://example.com/{proxy}") * .build()); * - * var exampleRoute = new Route("exampleRoute", RouteArgs.builder() + * var exampleRoute = new Route("exampleRoute", RouteArgs.builder() * .apiId(example.id()) - * .routeKey("ANY /example/{proxy+}") - * .target(exampleIntegration.id().applyValue(id -> String.format("integrations/%s", id))) + * .routeKey("ANY /example/{proxy+}") + * .target(exampleIntegration.id().applyValue(id -> String.format("integrations/%s", id))) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/RouteResponse.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/RouteResponse.java index c853cc7cc84..562214bdf87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/RouteResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/RouteResponse.java @@ -24,7 +24,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -45,15 +46,16 @@ * } * * public static void stack(Context ctx) { - * var example = new RouteResponse("example", RouteResponseArgs.builder() + * var example = new RouteResponse("example", RouteResponseArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) * .routeId(exampleAwsApigatewayv2Route.id()) - * .routeResponseKey("$default") + * .routeResponseKey("$default") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Enabling Two-Way Communication diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Stage.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Stage.java index 35b03edac96..07bdbd20868 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Stage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/Stage.java @@ -29,7 +29,8 @@ * ### Basic * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -50,14 +51,15 @@ * } * * public static void stack(Context ctx) { - * var example = new Stage("example", StageArgs.builder() + * var example = new Stage("example", StageArgs.builder() * .apiId(exampleAwsApigatewayv2Api.id()) - * .name("example-stage") + * .name("example-stage") * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import @@ -190,7 +192,7 @@ public Output
+ * {@code * package generated_program; * * import com.pulumi.Context; @@ -46,16 +47,17 @@ * } * * public static void stack(Context ctx) { - * var example = new VpcLink("example", VpcLinkArgs.builder() - * .name("example") + * var example = new VpcLink("example", VpcLinkArgs.builder() + * .name("example") * .securityGroupIds(exampleAwsSecurityGroup.id()) * .subnetIds(exampleAwsSubnets.ids()) - * .tags(Map.of("Usage", "example")) + * .tags(Map.of("Usage", "example")) * .build()); * * } * } - * ``` + * } + ** <!--End PulumiCodeChooser --> * * ## Import diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/inputs/ApiState.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/inputs/ApiState.java index 290f2b25751..9b29cfc605b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/inputs/ApiState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/inputs/ApiState.java @@ -148,7 +148,7 @@ public Optional